Installation Failed: Invalid Argument -iOS Extension

不打扰是莪最后的温柔 提交于 2019-11-29 02:19:59

问题


https://imgur.com/vFn0S7g

Hi guys,

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.


回答1:


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;




回答2:


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




回答3:


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.




回答4:


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.




回答5:


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.




回答6:


This issue can be resolved simply by emptying the trash.




回答7:


I fixed this by first building for an actual device - once I'd done that at least once, the simulator ran fine.




回答8:


I got it working after I tried everything mentioned here, then deleting the app from the device and restarting XCode. Those two steps were mentioned here: https://stackoverflow.com/a/28232381/1586277

I have no idea what combination of steps fixed it though.




回答9:


I got this issue while running on simulator. I rebooted the system and the issue gone.




回答10:


I just had the same issue. My fix was to delete the temporary project files in the derived data folder:

rm -R /Users/username/Library/Developer/Xcode/DerivedData/projectname



回答11:


I had the same issue. This helped https://forums.developer.apple.com/thread/7338




回答12:


Check your connected device has enough storage space. I had this issue when I tried to run in my iPhone. I cleared the storage by deleting couple of apps and tried to install again and then it works.




回答13:


Check your device's storage.

I had this issue and deleting some apps was the only solution for me...




回答14:


I could fix this problem by switching to a different simulator (iPhone6 instead of iPhone6s) in my case).




回答15:


Switch OFF your Phone and ON.

Now install your app ,its works for me.




回答16:


If you run in device then remove previous app . It will work .



来源:https://stackoverflow.com/questions/27031746/installation-failed-invalid-argument-ios-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!