kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 473 forks source link

error message:"The application bundle does not contains valid identifier" #17

Closed madik closed 12 years ago

madik commented 12 years ago

Hi!

I started to use your solution today, very useful. I made everything, you wrote, I created a "fake" framework, build in releae configuration. Then I drag&drop the xy.embeddedframework folder to my project, and everything work (I can use xib files, etc..). But sometimes I got such error message, when I try to run the app on device. Most recent in cases, when I modify something in the framework, then I delete the references from the "main" project, and I add again. In such situations, I couldn't do anything, I have to create a new project. This is very annoying. What i'm missing?

kstenerud commented 12 years ago

Hi, could you give me some more information, such as:

madik commented 12 years ago

I tested more, and I find a way, I don't have to create a new project each time I got this message.

What the error messages are:

The message is just: "The application bundle does not contains valid identifier", which comes in a pop-up window, when I started to run the project on a device.

The exact steps to reproduce this issue:

I don't know the exact steps, because I don't get this error every time. For example, as I mentioned, create a test "fake" framework, create a test class with a method, build it in release config. Then, create a default view-based application. Drag&Drop the test.embeddedframework folder from the release-iphoneos folder into the project. Then include the created test class, and call the method (sometimes I get the error message at this point, if I try to run the app). Then modify something in the framework's test class, delete the old reference from the project, and drag&drop again the test.embeddedframework folder. In most cases, I get the error message at this time, when I try to run the app.

The solution is that, when you delete the old reference, clean the project (I usually delete the build folder too), add the new reference, and restart XCode (not just close the project). It seems to be work...

madik commented 12 years ago

Sorry, I pressed the Comment&Close button, but I think, you can close it...

kstenerud commented 12 years ago

There's an error in the fake framework build script which causes it to create too many symlinks when rebuilding a framework without cleaning. I'll post a fix soon, but in the meantime you can get around this issue by cleaning the framework project before building it.

kstenerud commented 12 years ago

This should be fixed in the current templates. Please re-open this issue if it's still a problem.

zeshanmusawar commented 5 years ago

Please Try this https://stackoverflow.com/questions/37750186/the-application-bundle-does-not-contain-a-valid-identifier/39450461 Thanks