18

https://i.stack.imgur.com/nm3Jg.jpg

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.

peterh
  • 11,875
  • 18
  • 85
  • 108
Dsw
  • 281
  • 1
  • 2
  • 10

16 Answers16

19

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;

CFIFok
  • 891
  • 8
  • 15
  • This fixed my issue. I added a complete folder called Resources to the project and that was the issue. I then created a folder manually and added the files to it, also named Resources, and that worked. – Martin Schultz Oct 14 '15 at 12:15
15

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

Pravin S.
  • 465
  • 7
  • 22
10

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.

Dsw
  • 281
  • 1
  • 2
  • 10
  • What do you mean by "build name"? Are you talking about the "product name"? – petehare Jan 20 '15 at 20:19
  • This worked for me! I renamed my Project Name to match the Product Name (actual App name). – Gabe Karkanis Mar 19 '15 at 03:45
  • 2
    Great! And so odd. What I had to do is change the entry of "Bundle Name" in Info.plist from `$(PRODUCT_NAME)` to `$(TARGET_NAME)` to ensure the names are identical, even though "Product Name" in Build Settings was already set to `$(TARGET_NAME)`. Perhaps it didn't properly expand the variables. – CodeSmile Jul 14 '15 at 13:47
6

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.

André Morujão
  • 6,963
  • 6
  • 31
  • 41
4

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.

Community
  • 1
  • 1
lukas_o
  • 3,776
  • 4
  • 34
  • 50
3

This issue can be resolved simply by emptying the trash.

SuperBiasedMan
  • 9,814
  • 10
  • 45
  • 73
1

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

Richard
  • 1,803
  • 17
  • 17
1

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.

Community
  • 1
  • 1
akiraspeirs
  • 2,127
  • 2
  • 21
  • 29
0

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

makboney
  • 1,808
  • 1
  • 17
  • 34
0

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
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
  • I have tried this by deleting content of this folder, but it has not helped. After I have deleted whole folder, restarted Mac and emptied trash (as advised by Abdul Shamim), problem is gone. I have not used any extension, so using extensions might not be only source of this problem. – Reconquistador Jun 05 '15 at 05:41
0

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

Namrata
  • 31
  • 2
0

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.

0

Check your device's storage.

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

chents
  • 393
  • 3
  • 14
0

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

joern
  • 27,354
  • 7
  • 90
  • 105
0

Switch OFF your Phone and ON.

Now install your app ,its works for me.

chandrika
  • 394
  • 4
  • 12
0

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

datha
  • 359
  • 2
  • 14