Hi everyone,
I was trying to build my app to the XCode iOS simulator for the first time and no matter what I tried, could NOT get it to build.
I would always receive this output at the console:
2014-11-22 18:15:42.344 Corona Simulator[22477:507] iOS build succeeded Using Xcode iOS 8.1 Simulator from Xcode 6.1 + '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/ios-sim' launch /Users/m/Desktop/myapp.app --family iphone --retina --tall Session could not be started: Error Domain=NSPOSIXErrorDomain Code=22 "Unable to run app in Simulator" UserInfo=0x7fa0c2515970 {NSLocalizedFailureReason=An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 22), NSUnderlyingError=0x7fa0c26494f0 "Installation Failed", NSLocalizedRecoverySuggestion=An error occurred while preparing the app for installation (no bundle identifier was found at the expected path), NSLocalizedDescription=Unable to run app in Simulator} + exit 1
and this error in the XCode Simulator logs:
com.apple.CoreSimulator.simctl[24054] \<Error\>: Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x7f847152a0b0 {Error=MissingBundleIdentifier, ErrorDescription=Bundle at path /Users/m/Library/Developer/CoreSimulator/Devices/81F1A820-1708-4CC2-975D-11CF04AAEDAD/data/Library/Caches/com.apple.mobile.installd.staging/temp.mTtr9J/extracted/myapp.app did not have a CFBundleIdentifier in its Info.plist}
After a whole lot of googling, I came across this StackOverflow post unrelated to CoronaSDK: http://stackoverflow.com/questions/26396166/unable-to-run-app-in-simulator
As it turns out, for iOS you cannot have a folder called “resources” in your project or it will mess up your app package completely. I had such a folder (it was empty, a remnant of early structure I had sense abandoned).
As soon as I removed it, voila my app built perfectly.
Hope this helps someone.
-M.