My app is running as expected in the Corona Simulator and as an Android App. Now its time for iOS. It builds successfully, but when loading into the simulator, I get the following error:
Error running /Applications/CoronaSDK-3028/Corona Simulator.app/Contents/Resources/xcodesim_sendapp.sh (
“/Users/davida/Desktop/safeDriveZone/sdzAdmin.app”,
“D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C”
)
Jan 28 11:02:02.654 ++ defaults read com.coronalabs.Corona_Simulator debugBuildProcess
- DEBUG_BUILD_PROCESS=
- ‘[’ 0 -gt 2 ‘]’
- trap ‘kill -TERM 0’ EXIT
- APP=/Users/davida/Desktop/safeDriveZone/sdzAdmin.app
- UDID=D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C
- ‘[’ D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C == ‘’ ‘]’
- ‘[’ ‘!’ -r /Users/davida/Desktop/safeDriveZone/sdzAdmin.app ‘]’
++ xcode-select -p - SIMULATOR_APP=/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
++ plutil -convert json /Users/davida/Desktop/safeDriveZone/sdzAdmin.app/Info.plist -o - -r
++ grep CFBundleIdentifier
++ sed -e ‘s/.* : “([^”]*)",/\1/’ - BUNDLE_ID=com.example.sdzAdmin
++ xcrun simctl list devices
++ grep -c ‘(D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C) (Booted)’ - ISRUNNING=0
++ xcrun simctl list devices
++ grep -c ‘(Booted)’ - NUMBOOTED=0
- ‘[’ 0 ‘!=’ 1 ‘]’
- echo ‘Restarting Xcode Simulator …’
- shutdownAll
++ xcrun simctl list devices
++ sed -ne ‘/Booted/s/.*(([^)]*).*(.*)/\1/p’ - BOOTED=
- killall Simulator
No matching processes belonging to you were found - sleep 2
- open -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C
- loopcount=1
++ xcrun simctl uninstall D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C fake.app.id
++ grep -c Invalid - count=0
- ‘[’ 0 -gt 0 ‘]’
- xcrun simctl uninstall D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C com.example.sdzAdmin
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163):
Unable to lookup in current state: Shutdown - xcrun simctl install D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C /Users/davida/Desktop/safeDriveZone/sdzAdmin.app
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163):
Unable to lookup in current state: Shutdown - echo
- sleep 2
- xcrun simctl launch D833B1B8-D9AE-4179-8E8B-F87BBCE46D1C com.example.sdzAdmin
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open “com.example.sdzAdmin” failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound (“Application “com.example.sdzAdmin” is unknown to FrontBoard”). - kill -TERM 0
Restarting Xcode Simulator …
I get what I expect is a script for execution, but uses a BUNDLE_ID of com.example.sdzAdmin
I didn’t specify a provisioning profile, since one wasn’t necessary for xCode, so it looks like it generated the “com.example” itself. (I didn’t specify a cfBundle… in plist.
)
I’m looking up the various error codes, but could use a point in the right direction here. Is it something I’ve got wrong in build.settings?
I’m not getting a successful installation in the simulator - it doesn’t show the app in the list or as an icon on the simulated device.
xCode: 8.2.1
OS: 10.2
Build: 2017.3028
iphone =
{
plist =
{
CoronaWindowMovesWhenKeyboardAppears = true,
UIStatusBarHidden=true,
UIBackgroundModes = {“remote-notification”},
UIViewControllerBasedStatusBarAppearance = false,
UIApplicationExitsOnSuspend = false,
NSLocationWhenInUseUsageDescription = “This app uses maps.”,
UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon@3x.png”,
“Icon-40.png”,
“Icon-40@2x.png”,
“Icon-40@3x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-60@3x.png”,
“Icon-64.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-Small-40@3x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small@3x.png”
},
UILaunchImages = {
{ – iPhone 4 Portrait
[“UILaunchImageMinimumOSVersion”] = “7.0”,
[“UILaunchImageName”] = “Default”,
[“UILaunchImageOrientation”] = “Portrait”,
[“UILaunchImageSize”] = “{320, 480}”
},
{ – iPhone 4 LandscapeLeft
[“UILaunchImageMinimumOSVersion”] = “7.0”,
[“UILaunchImageName”] = “Default”,
[“UILaunchImageOrientation”] = “LandscapeLeft”,
[“UILaunchImageSize”] = “{320, 480}”
},
{ – iPhone 4 LandscapeRight
[“UILaunchImageMinimumOSVersion”] = “7.0”,
[“UILaunchImageName”] = “Default”,
[“UILaunchImageOrientation”] = “LandscapeRight”,
[“UILaunchImageSize”] = “{320, 480}”
},
{ – iPhone 5 Portrait
[“UILaunchImageMinimumOSVersion”] = “7.0”,
[“UILaunchImageName”] = “Default-568h”,
[“UILaunchImageOrientation”] = “Portrait”,
[“UILaunchImageSize”] = “{320, 568}”
},
{ – iPhone 5 LandscapeLeft
[“UILaunchImageMinimumOSVersion”] = “7.0”,
[“UILaunchImageName”] = “Default-568h”,
[“UILaunchImageOrientation”] = “LandscapeLeft”,
[“UILaunchImageSize”] = “{320, 568}”
},
{ – iPhone 5 LandscapeRight
[“UILaunchImageMinimumOSVersion”] = “7.0”,
[“UILaunchImageName”] = “Default-568h”,
[“UILaunchImageOrientation”] = “LandscapeRight”,
[“UILaunchImageSize”] = “{320, 568}”
},
– { – iPad Portrait
– [“UILaunchImageMinimumOSVersion”] = “7.0”,
– [“UILaunchImageName”] = “Default-Portrait”,
– [“UILaunchImageOrientation”] = “Portrait”,
– [“UILaunchImageSize”] = “{768, 1024}”
– },
– { – iPad LandscapeLeft
– [“UILaunchImageMinimumOSVersion”] = “7.0”,
– [“UILaunchImageName”] = “Default-Landscape”,
– [“UILaunchImageOrientation”] = “LandscapeLeft”,
– [“UILaunchImageSize”] = “{768, 1024}”
– },
– { – iPad LandscapeRight
– [“UILaunchImageMinimumOSVersion”] = “7.0”,
– [“UILaunchImageName”] = “Default-Landscape”,
– [“UILaunchImageOrientation”] = “LandscapeRight”,
– [“UILaunchImageSize”] = “{768, 1024}”
– },
{ – iPhone 6 Portrait
[“UILaunchImageMinimumOSVersion”] = “8.0”,
[“UILaunchImageName”] = “Default-667h”,
[“UILaunchImageOrientation”] = “Portrait”,
[“UILaunchImageSize”] = “{375, 667}”
},
{ – iPhone 6 LandscapeLeft
[“UILaunchImageMinimumOSVersion”] = “8.0”,
[“UILaunchImageName”] = “Default-667h”,
[“UILaunchImageOrientation”] = “LandscapeLeft”,
[“UILaunchImageSize”] = “{375, 667}”
},
{ – iPhone 6 LandscapeRight
[“UILaunchImageMinimumOSVersion”] = “8.0”,
[“UILaunchImageName”] = “Default-667h”,
[“UILaunchImageOrientation”] = “LandscapeRight”,
[“UILaunchImageSize”] = “{375, 667}”
},
{ – iPhone 6 Plus Portrait
[“UILaunchImageMinimumOSVersion”] = “8.0”,
[“UILaunchImageName”] = “Default-736h”,
[“UILaunchImageOrientation”] = “Portrait”,
[“UILaunchImageSize”] = “{414, 736}”
},
{ – iPhone 6 Plus LandscapeLeft
[“UILaunchImageMinimumOSVersion”] = “8.0”,
[“UILaunchImageName”] = “Default-Landscape-736h”,
[“UILaunchImageOrientation”] = “LandscapeLeft”,
[“UILaunchImageSize”] = “{414, 736}”
},
{ – iPhone 6 Plus LandscapeRight
[“UILaunchImageMinimumOSVersion”] = “8.0”,
[“UILaunchImageName”] = “Default-Landscape-736h”,
[“UILaunchImageOrientation”] = “LandscapeRight”,
[“UILaunchImageSize”] = “{414, 736}”
},
– { – iPad Pro Portrait
– [“UILaunchImageMinimumOSVersion”] = “9.0”,
– [“UILaunchImageName”] = “Default-Portrait-1366”,
– [“UILaunchImageOrientation”] = “Portrait”,
– [“UILaunchImageSize”] = “{1024, 1366}”
– },
– { – iPad Pro Landscape Right
– [“UILaunchImageMinimumOSVersion”] = “9.0”,
– [“UILaunchImageName”] = “Default-Landscape-1366”,
– [“UILaunchImageOrientation”] = “LandscapeRight”,
– [“UILaunchImageSize”] = “{1024, 1366}”
– },
– { – iPad Pro Landscape Left
– [“UILaunchImageMinimumOSVersion”] = “9.0”,
– [“UILaunchImageName”] = “Default-Landscape-1366”,
– [“UILaunchImageOrientation”] = “LandscapeLeft”,
– [“UILaunchImageSize”] = “{1024, 1366}”
– },
},
},
},
plugins =
{
[“plugin.OneSignal”] =
{
publisherId = “com.onesignal”,
},
– [“plugin.applovin”] =
– {
– publisherId = “com.coronalabs”,
– supportedPlatforms = { iphone=true, android=true, appletvos=true }
– },
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { android=true }
},
},
}
thanks
Dave