Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

app crashes in xcode simulator iOS 7 SDK
Started by searchm Oct 23 2013 01:08 PM

83 replies to this topic
xcode ios7
[TOPIC CONTROLS]
Page 3 of 4 1 2 3 4
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#51

Tom

[GLOBAL: userInfoPane.html]
Tom
  • Moderator

  • 1,480 posts
  • Corona Staff

I'm confused about where you're seeing this error. Are you saying building a distribution build with non-mavericks (e.g., Mt. Lion) OS with build 1202 gives you this error? I haven't seen anyone else report problems with distribution builds.

 

The Mavericks/Xcode fix only affects the Xcode Simulator and is only available in Daily Builds. We can't fix the Public Release build.



[TOPIC: post.html]
#52

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

@Tom,

just wanted to say that the new daily build solved my problem. I can finally test my app on iOS7 ! Thank you!



[TOPIC: post.html]
#53

Sadsack

[GLOBAL: userInfoPane.html]
Sadsack
  • Observer

  • 28 posts
  • Corona SDK

Mavericks.

XCODE. 5.0.1

Daily Build: Version 2013.1251 (2013.11.1)

 

Still having issues. Was this resolved or not. When I want to load Helloworld on to device it gives" The application does not have a valid signature.

 

Console

Nov  3 16:16:48  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]

Nov  3 16:16:48 iPad installd[54] <Error>: 0x283000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.Z1vjvp/HelloWorld.app/HelloWorld: 0xe8008019
 
 
Then on other app
There was an internal API error.
 
Console"
0x3d7b3b88 MobileInstallationInstall: failed with -1
Nov  3 16:18:46 iPad mobile_installation_proxy[2796] <Error>: handle_install: Installation failed
Nov  3 16:18:46 iPad installd[54] <Error>: 0x283000 install_application: Could not preflight application install
Nov  3 16:18:46 iPad installd[54] <Error>: 0x283000 handle_install: API failed
Nov  3 16:19:46 iPad installd[54] <Error>: 0x283000 MobileInstallationCheckCapabilitiesMatch_Server: desired capabilities is not an array or dicitonary
Nov  3 16:19:46 iPad installd[54] <Error>: 0x283000 handle_check_capabilities: API failed
Nov  3 16:19:46 iPad mobile_installation_proxy[2801] <Error>: 0x3d7b3b88 MobileInstallationCheckCapabilitiesMatch: failed with -1
Nov  3 16:19:46 iPad mobile_installation_proxy[2801] <Error>: handle_check_capabilities: Check Capabilities failed"
 
Please help.

 



[TOPIC: post.html]
#54

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,682 posts
  • Enterprise

This particular issue impacts the XCode simulator and it is a keychain related issue.    @Sadsack what you are probably encountering a bad certificate in your keychain that is causing this issue.  You should be able to delete all your development keys and certificates, clear out your provisioning profiles and then generate new certificates and keys and then recreate the provisioning profiles and download them anew.

 

Several people have done this and it solved the problems.

 

This isn't a Corona issue as much as it is an interaction between Mavericks, XCode5 and your keychain.



[TOPIC: post.html]
#55

Sadsack

[GLOBAL: userInfoPane.html]
Sadsack
  • Observer

  • 28 posts
  • Corona SDK

Hi Rob

 

I have tried that. I have cleared all my keychains, reloaded and created new Keychains. In terminal rm all prevoise provision profiles and add the new one. The HalloWorld still does want to be uploaded on my device.



[TOPIC: post.html]
#56

Sadsack

[GLOBAL: userInfoPane.html]
Sadsack
  • Observer

  • 28 posts
  • Corona SDK

I have tested on two different Mac PC. And both of them give this issue.

 

Nov  3 20:56:39 iMacs-iPad wifid[15] <Notice>: WiFi:[405197799.878354]: new locale:  , locale: 
Nov  3 20:56:42 iMacs-iPad mobile_installation_proxy[128] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.
Nov  3 20:56:42 iMacs-iPad mobile_installation_proxy[128] <Warning>: LaunchServices: installing app for existing placeholder (null)
Nov  3 20:56:42 iMacs-iPad installd[60] <Notice>: 0x2cc000 handle_install_for_ls: Install of "/var/mobile/Media/PublicStaging/HelloWorld.app" requested by mobile_installation_proxy
Nov  3 20:56:42 iMacs-iPad installd[60] <Notice>: 0x2cc000 MobileInstallationInstall_Server: Installing app HelloWorld
Nov  3 20:56:43 iMacs-iPad installd[60] <Error>: 0x2cc000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.eCKcrZ/HelloWorld.app/HelloWorld: 0xe8008019
Nov  3 20:56:43 iMacs-iPad installd[60] <Error>: 0x2cc000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.eCKcrZ/HelloWorld.app
Nov  3 20:56:43 iMacs-iPad mobile_installation_proxy[128] <Error>: 0x201000 MobileInstallationInstallForLaunchServices: failed with -1
Nov  3 20:56:43 iMacs-iPad mobile_installation_proxy[128] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Nov  3 20:56:43 iMacs-iPad installd[60] <Error>: 0x2cc000 install_application: Could not preflight application install
Nov  3 20:56:43 iMacs-iPad mobile_installation_proxy[128] <Error>: 0x201000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x1657ee60 {Error=ApplicationVerificationFailed, ErrorDetail=-402620391}
Nov  3 20:56:43 iMacs-iPad installd[60] <Error>: 0x2cc000 handle_install_for_ls: API failed


[TOPIC: post.html]
#57

brindleware

[GLOBAL: userInfoPane.html]
brindleware
  • Contributor

  • 101 posts
  • Corona SDK

Hi @roman85,

Just curious, has this happened only since you upgraded to Mavericks? Or were you experiencing this with Mountain Lion too?

 

Thanks,

Brent

 

for me - only since Maverick.



[TOPIC: post.html]
#58

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @brindleware,

@roman85 seems to have solved this by using the latest daily build. Have you tried the same?

 

@Sadsack,

Did you clear off all provisioning profiles on the actual device, clear out and re-generate new certificates and provisioning profiles in the Apple Dev Center, sync the device with your computer, check that all of the new profiles are "active" and marked with a green dot, then re-started the Corona Simulator to build?

 

Brent



[TOPIC: post.html]
#59

IBMHursley1964

[GLOBAL: userInfoPane.html]
IBMHursley1964
  • Contributor

  • 128 posts
  • Corona SDK

Start system user will have no access to daily builds.

So are we stuck until a new starter system build is release (when?).

Thanks

Alec



[TOPIC: post.html]
#60

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,682 posts
  • Enterprise

Hi @ibmprgmsince1964, you are correct, both the Starter and Basic tier do not get access to daily builds.  We don't have a set schedule for when we put out public builds, but we've been doing so in the 3-4 month range recently.  And we have not announced a date for the next one yet.



[TOPIC: post.html]
#61

IBMHursley1964

[GLOBAL: userInfoPane.html]
IBMHursley1964
  • Contributor

  • 128 posts
  • Corona SDK

I realised that the Starter could not see daily builds. I was just going to buy into the Basic but there will be no benefit there either then.

H'mm it is really frustrating/costly to be stopped using your products that you advertise as being able to publish to the app store, but now we cant do that if we stay up to date with Apple code and Corona public releases because of this bug.

 

I think there is a case here for your consideration of this solution being available in the daily build, to be quickly promoted to Starter and Basic level for public release, otherwise as you are not at the moment conforming to your ads.  As I see it, I have to wait now for 3-4 months  before I can publish and test on a device, maybe not even  then?

 

I think this could be a business risk to your company if some Starter or Basic user has the funds to pursue this non-conformity...

May be check not the techy side of the business, but the legal!

Any way are there any technical alternatives in Corona for us Starter and Basic users to overcome this earlier?



[TOPIC: post.html]
#62

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,682 posts
  • Enterprise

@ibmprgmrsince1964, I think you mis-read what I said.  I was not saying you will have to wait 3-4 **MORE** months.  The current public build is about 2.5 months old.  We've got some bugs to knock out of the new Graphics 2.0 engine before we can release a new public build.  We will probably be freezing the branch soon and entering the deep testing phase.  We can't commit to an exact date because there are too many variables but it won't be that much longer.

 

The benefit of a Basic plan is to get access to InApp Purchases.  Daily builds are a benefit to Pro and Enterprise subscribers. 

 

This particular bug only impacts the Xcode simulator with Mavericks.  It does not impact device builds.  So far everyone suffering issues with device builds have been able to solve their problem by cleaning out their keychain.  You do not have to do XCode Simulator builds to build and deploy your app. 

 

Are you experiencing a different issue?

 

Rob

 

Rob



[TOPIC: post.html]
#63

IBMHursley1964

[GLOBAL: userInfoPane.html]
IBMHursley1964
  • Contributor

  • 128 posts
  • Corona SDK

Rob,

Thanks for a bit more clarity. It could be a variation/ additional problem. I had cleaned out keychain and even built new certificates/profiles etc.

I have gone and built direct to device and the app does not run/ but just flashes icon and then nothing. No console output at that stage, so I need to go and re-check via the XCode's Organizer.

I had assumed this to be the same cause, so maybe not. I guess  I need to check filenames for mismatch case typing or fonts( I am sure I have done this before but will now check again...).

Thanks

 

Alec



[TOPIC: post.html]
#64

evanbanana

[GLOBAL: userInfoPane.html]
evanbanana
  • Observer

  • 14 posts
  • Corona SDK

I recently too upgrade from Lion to OS Mavericks and Xcode. Same problems, mainly to do with some key signing issue. Cleared out Key chains and certs and all that and it hasn't resolved anything. I'm with Alec on this, could a one time only daily build not be issued to at least starter subscribers to resolve this issue?

 

Evan



[TOPIC: post.html]
#65

IBMHursley1964

[GLOBAL: userInfoPane.html]
IBMHursley1964
  • Contributor

  • 128 posts
  • Corona SDK

Well,  have spent the day checking, changing, cleaning and any thing else I could think of or using suggestions  from throughout the forums on this subject (excluding Pro or Enterprise build downloads-as I still have Starter).

 

I can now run on the xcode simulator (whoopie)  but  the app fails still trying to get installed on to the device!.

 

iTunes does not show the proper icon (default develop icon shown)  and iTunes just sits there with ' installing' on the install button.

Sync shows copying, but never finishing install.

Using the Xcode organiser this shows that the code signature is missing/wrong.

 

So in my keenness what have I deleted? how//what do I re-create within the  keychain utility? I have tried many variations so I think the only route to restore the code signature is remove xcode and re-install. 

Would any one agree./disagree/ suggest another alternative?

I have tried recovery via the time machine but could not easily see what to select in the backup Libray/KeyChains folder and a little nervous I might corrupt something else.

 

Alec



[TOPIC: post.html]
#66

IBMHursley1964

[GLOBAL: userInfoPane.html]
IBMHursley1964
  • Contributor

  • 128 posts
  • Corona SDK

This is now getting really confusing! 

The problem is obviously something to do with the keychains and provisioning specification (sequence/definition) [ a bug or lack of knowledge]

 

Now (down loading and re-installing  Xcode 5 after cleaning all relevant keys yet again  and then recreating them for about the fifth time) I cannot run the app now in the xcode simulator (the prior post time, the same app ran in the Xcode simulator OK!!!).

 

But now the app only  runs on the device !!!  First time for weeks. 

 

After installing Xcode I cleaned out all keys and certs in my name and started afresh and recreated dev and distribution provision etc. In the provisioning there is also two activated by Xcode (default and one ap id i created). Plus a distribution provisioning, a dev provisioning, each I created. The device build used a default Xcode team dist code sign. I have tried various profiles sign id.s in the simulator and all fail the same way.

 

The Xcode simulator fails with a message about an unspecified device family!.

 

[DEBUG] SDK Root: <DTiPhoneSimulatorSystemRoot 0x100600920> path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk version=7.0 name=Simulator - iOS 7.0

 

[DEBUG] using device family unspecified

 

Alec

PS The concern here is sometimes it works one way and then another different way. So are the 'solutions' stated above 'permanent' or just the luck of the draw as I find it varies depending on what day it is!



[TOPIC: post.html]
#67

IBMHursley1964

[GLOBAL: userInfoPane.html]
IBMHursley1964
  • Contributor

  • 128 posts
  • Corona SDK

Help in understanding required here.... Is this really due to the bug addressed by the latest daily build . Am I waisting my time or does all this help understand the bug???

 

I tried to load the exact same App onto my iPad and it failed to install.

The app installed ok on iPhone.

It will not run on Xcode simulator.

 

I am using provisioning profiles that include both devices

Curiously I have 3 DEV Provisioning Profiles defined and only 1 Distribution Provisioning Profiles. 

The extra 2 are

a) Xcode install created ????

B) MyApp Id I created - but not referenced

Xcode Wild Card is used in all Profiles thus far.

Profiles

-----

1. MyApp-Develop provisioning-Xcode: Wildcard AppID (*)-1 Certificate-2 devices-Services none-expire Nov 2014-Active

2. MyApp-Distribution provisioning-ad hoc -Xcode: Wildcard AppID (*)-1 Certificate-2 devices-Services none-expire Nov 2014-Active

-----

3. IOS Team * -Dev Provisioning -Xcode: Wildcard AppID (*)-1 Certificate-2 devices-Services none-expire Nov 2014-Active-MANAGED BY Xcode

4.IOS Team com.MyApp * -Dev Provisioning-MyApp(com.myapp.*)-1 Certificate-2 devices-Services none-expire Nov 2014-Active-MANAGED BY Xcode

-----

All install ok on iPhone using iPhone Config Utility

However when installed on iPad only profile (1) and (2) are marked as vallid (3) and (4) are marked as not sign on the iPad only!

 

Therefore the Xcode organiser disabled the add application and it will not install. On iTunes I can add it but the iPad gives a msg unable to install and iTunes sits with 'Installing' displayed

 

I am on Xcode Version 5.0.1 (5A2053) 

iPhone IOS 7.03911B511)

iPad IOS 6.1.2 (10B146) -this is left back level -wife wont allow update but also good base to validate on older IOS levels 

is this the cause of failure to install now on iPad?

Alec



[TOPIC: post.html]
#68

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,682 posts
  • Enterprise

Alec, I'm sorry you're having all of these problems.  I wish there was some magic that would help. 

 

The Mavericks-XCode5 issue shows when you look at the Mac's Console app.  Running 1202 you will get this error:

 

11/9/13 1:19:23.776 PM taskgated[13]: killed Orientation[pid 2489] because its use of the keychain-access-groups entitlement is not allowed (error code -67030)
 

This error occurs because pre-Mavericks, it was okay to run an app in the XCode simulator that was signed in a particular way.  Mavericks changed this behavior and this is what we fixed in the daily builds, so that on Mavericks we changed how we sign the apps for the Simulator the way Xcode expects it.

 

We also have noticed that the IPhone Configuration Utility (which many people use to install apps to their device) seems to have issues on Mavericks.  There is another thread about this.  Engineering points to these two links:

 

http://forums.macrumors.com/showthread.php?t=1662524
https://discussions.apple.com/message/23562825#23562825

 

For workarounds.  If you are using the iPhone Configuration Utility those links might help, but I highly recommend only using XCode's Organizer to install things since it gives better error messages. 

 

Now your issues are something that is different.  There have been a few people after upgrading to Mavericks who had problems installing on device.  So far you're the only person that cleaning out the provisioning profiles and key chain hasn't fixed.   So let me try to summarize where you are:

 

1.  You cannot build for the XCode simulator with 1202 on Mavericks.   This is expected.

2.  You can build for an iOS 7 iPhone with no difficulties.

3.  You cannot build for an iOS 6 iPad.

 

Has the iPad been plugged into the Mac and from XCode's organizer and you've told it to use that iPad for development?

 

Have you tried to create an AdHoc Distribution profile specifically for your app?  I've never had a lot of luck using the Team profile.  Making sure you have your devices in there.  Download the profile and manually move it to ~/Library/MobileDevice/Provisioning\ Profiles/

 

Restart Corona SDK (Oh side note, after cleaning up all your keys and such, did you reboot?) and try building with the specific provisioning profile for your app?

 

Rob



[TOPIC: post.html]
#69

IBMHursley1964

[GLOBAL: userInfoPane.html]
IBMHursley1964
  • Contributor

  • 128 posts
  • Corona SDK

"I wish there was some magic that would help." from Mr Miracle !

Well you certainly provide some here...

Following your guidance and using the Xcode organiser instead of the IPhone Configuration Utility I am there (well almost).

I now have the app running on the iPad and the iPhone.

I am still no where near confident with these certificate/profile/ distribution/dev/team methodology.

Many reasons...

The attached image capture shows of the three I created two failed. So the only active is the xcode team and my own distrubition profile.

I used my own distribution profile which is now on the working devices.

I tried the Xcode simulator yet again but the error  I see is not the error you gave but is still related to signatures

EXC_CRASH (Code Signature Invalid)

The app loads into the simulator and the icon can be seen in the window but crashes with the above error.
 
Previous profiling included a request to use my certificate "AS Cockle" keychain click allow always etc
This time it just requested <key> keychain. I have no idea why.
 
 
So I need to go and find a dark corner and  study this certification process  a lot more because it is all smoke and mirrors to me so far...
 
Anyway thank you Rob for the continued feedback and guidance.
Alec

Attached Files



[TOPIC: post.html]
#70

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,682 posts
  • Enterprise

The whole certificate/keychain stuff is complex enough that if you don't do it often enough you never get comfortable with it. 



[TOPIC: post.html]

[TOPIC: post.html]
#72

staytoooned

[GLOBAL: userInfoPane.html]
staytoooned
  • Contributor

  • 198 posts
  • Corona SDK

I am still having the problem running the app on the simulator. It works on the device. I'm using build 1256. Has this problem been resolved. When I try to run it, the simulator just hangs up.



[TOPIC: post.html]
#73

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,682 posts
  • Enterprise

It was fixed in 1248.

 

Can you bring up the Console app and see what errors you are getting?



[TOPIC: post.html]
#74

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,976 posts
  • Corona SDK

I too am getting this problem, having just upgraded to Mavericks/xCode 5. Building using Corona 1260. 

 

The app installs on xCode simulator, after the splash screen the screen goes black. Absolutely no error messages from the console. If I restart the simulator (i.e select a different device), the home page shows with the app icon, but running it again gives the black screen.

 

I put in a print statement on line 1 of main.lua and this doesn't show in the console either.



[TOPIC: post.html]
#75

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,976 posts
  • Corona SDK

Have reinstalled xCode 5 from scratch, deleted all profiles from the library and devcenter, and created new profiles on devcenter. These then download automatically into xCode under preferences/accounts.

 

I am getting this in the console, when xCode simulator launches or I switch device:

 

14/01/2014 16:40:24.088 WindowServer[129]: hidd died. Reestablishing connection.
14/01/2014 16:40:24.088 loginwindow[81]: hidd died. Reestablishing connection.
14/01/2014 16:40:24.091 loginwindow[81]: hidd died. Reestablishing connection.
14/01/2014 16:40:24.090 loginwindow[81]: hidd died. Reestablishing connection.
 
I can't remember if this is normal or not. Still getting no errors on app launch. Happens with Corona build 1260 and 2126.
 



[topic_controls]
Page 3 of 4 1 2 3 4
 
[/topic_controls]