Installation Failed: Invalid Argument -iOS Extension

会有一股神秘感。 提交于 2019-11-30 05:01:25

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;

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

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.

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.

lukas_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.

Abdul Shamim

This issue can be resolved simply by emptying the trash.

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

akiraspeirs

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.

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

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

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

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.

Check your device's storage.

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

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

Switch OFF your Phone and ON.

Now install your app ,its works for me.

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

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