Installation Failed: Invalid Argument -iOS Extension

Dsw picture Dsw · Nov 20, 2014 · Viewed 18.4k times · Source

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.

Answer

CFIFok picture CFIFok · Aug 10, 2015

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;