Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation Failed: Invalid Argument -iOS Extension

https://imgur.com/vFn0S7g

I am about to build watch app target from existing project. I encountered a strange error upon finishing build that unables me to run the watch app properly. Here is the attached screenshot.

Environment

  • OSX 10.10
  • XCode 6.2 Beta
  • Simulator iPhone 6 iOS 8.2

When I try creating new watch app project and try the Lister demo app they work just fine. So I am suspecting there is something wrong with my existing project but not sure what since the error message is not really explanatory. I appreciate any leads or helps given, thank you for your time.

EDIT: After few investigation turns out extensions do not work as well.

like image 410
Dsw Avatar asked Nov 20 '14 04:11

Dsw


5 Answers

I had the same issue. This sequence helped for me:

Xcode doesn't like it when you have a referenced directory called 'Resources' within your resource bundle (see timrex)

1) Remove 'Resources' directory from your project's tree;

2) Reset content and settings in iPhone simulator;

3) Press Shift+Cmd+Alt+K and click 'Clean' or Shift+Cmd+K in xCode window;

like image 159
CFIFok Avatar answered Nov 14 '22 20:11

CFIFok


Check if the Bundle Identifier isn't empty in the Info.plist

like image 36
Pravin S. Avatar answered Nov 14 '22 21:11

Pravin S.


After 2 days of research I have found the answer which I believe is an xcode bug.

Basically this is caused by having different build name on your XCode build settings. Making them uniform should solve the problem. As shown here https://devforums.apple.com/message/1047770#1047770

I hope this helps anyone stumbled upon this question.

like image 43
Dsw Avatar answered Nov 14 '22 20:11

Dsw


I got my error fixed by setting the project's "Product Bundle Identifier". It was empty since my project was being generated by Gyp and I hadn't set that particular setting on the project.

like image 6
André Morujão Avatar answered Nov 14 '22 20:11

André Morujão


I ran into the same issue and got it resolved by cleaning the phone's memory since it was too low to install the app.

like image 4
lukas_o Avatar answered Nov 14 '22 21:11

lukas_o