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 1 of 4 1 2 3 »
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

Hi,

 

OSX Mavericks

XCode 5.0.1

IOS 7 SDK

Corona SDK 2013.1241

 

I've just tried to built my app for iOS 7 for the first time, but the app doesn't open in the xcode simulator. Only the splash screen image is shown. After that the app closes / crashes without any error message.

 

I think that iOS 7 SDK is the only SDK on my computer.

Corona doesn't let me choose any SDK at all.

 

Any help appreciated,

Roman

 

p.S.: I even tried to compile and run another app ( which is basically just some text ) in the xcode simulator with the same result.



[TOPIC: post.html]
#2

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

corona doesn't let me choose a different SDK to compile with.

Is there any way to do so?



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,569 posts
  • Corona Staff

There should be some messages in the Console log.  For the Xcode simulator that is in the "Console" app.  What does it say there?



[TOPIC: post.html]
#4

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

its use of the keychain access groups entitlement is not allowed

 

 

I already deleted the provisioning profiles and created new ones.

no difference in the simulator



[TOPIC: post.html]
#5

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

don't know what I'm doing wrong. my bundle identifiere is like com.company.appname.

 

even with a wildcard it doesn't work..

 

desperate :(



[TOPIC: post.html]
#6

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

the weird thing is that it's working on my real device 3gs ios 6.1 with new profiles.

but the ios7 simulator doesn't take it....

something to do with info.plist?



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,569 posts
  • Corona Staff

It's possible.  Do you have an iOS 7 device to test it on?  Is this a landscape app calling GameCenter or things like the camera or popups?

 

Can you post your build.settings



[TOPIC: post.html]
#8

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

build.settings:

 

-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {
	
	orientation = {
		default = "portrait",
		supported = { "portrait", }
	},
	
	iphone = {
		plist = {
			--UIStatusBarHidden = false,
			--UIPrerenderedIcon = true, -- set to false for "shine" overlay
			--UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend

            --[[
            -- iOS app URL schemes:
            CFBundleURLTypes =
            {
                {

                }
            }
            --]]
		}
	},
	

}

 

 

app:

 

local mytext = display.newText("hello",0,0,"Arial",20)

mytext.x = display.contentWidth / 2
mytext.y = display.contentHeight / 2


[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,569 posts
  • Corona Staff

I personally never like Xcode managing my provisioning profiles.   Consider this:

Quit Corona SDK.

Open up the terminal.

 

cd ~/Library/MobileDevice/Provisioning\ Profiles/

rm *.mobileprovision

 

Then hand download your profiles from the provisioning portal.  There is a real good change that Finder has that library folder hidden so you will probably have to use the command line to move them into the right place (or you can google on how to get the library folders visible to Finder again).

 

mv pathtowhereyoudownloadedthem/*.mobileprofile .

 

That's assuming your still in the Provisioning Profiles folder.  Note the <space> dot at the end of the line.  Lets say you downloaded them to your Downloads folder:

 

mv ~/Downloads/*.movileprofile .

 

Then restart Corona SDK and try building.



[TOPIC: post.html]
#10

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

sorry, I just edited my recent post because I discovered that xcode moved their provisioning profiles to settings...

so it's sync again..

anyway it still doesn't work. I'm out of ideas..



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,569 posts
  • Corona Staff

Can you try and build the hello world sample app?



[TOPIC: post.html]
#12

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

yes, everything works fine in coronas simulator and even on my real device (3gs iOS 6.1)

it just doesn't work in xcode simulator. always the same error in console log.

 

this makes me crazy. I even deleted my certificate and made a new one.

nothing works..



[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,569 posts
  • Corona Staff

Have you tried building the Hello World sample app for the Xcode simulator?



[TOPIC: post.html]
#14

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

sorry, what do you mean?

 

I compiled it for the xcode simulator when trying to test it there.



[TOPIC: post.html]
#15

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

it would be handy to have a real ios7 device to see if it's only the xcode simulator that doesn't work.



[TOPIC: post.html]
#16

hayk

[GLOBAL: userInfoPane.html]
hayk
  • Enthusiast

  • 51 posts
  • Corona SDK

I have the same problem. After updating OSX and everything else my app is crashing on startup (after showing Launcher image) without any useful message:

 

[12:56:01] >>    Marker - Oct 24, 2013, 12:55:41 PM
Oct 24 12:55:41 --- last message repeated 18 times ---
Oct 24 12:55:41 hayks-air backboardd[17636] <Error>: __hid_dispatch_pthread_root_queue_create_block_invoke: specific=0x4e61c60 pthread_self=0xb0197000
Oct 24 12:55:41 hayks-air backboardd[17636] <Error>: __hid_dispatch_pthread_root_queue_create_block_invoke: specific=0x4e61ac0 pthread_self=0xb0219000
Oct 24 12:55:42 hayks-air profiled[17640] <Notice>: (Note ) MC: Waiting for DataMigrator...
Oct 24 12:55:42 hayks-air SpringBoard[17646] <Warning>: LICreateIconForImage passed NULL CGImageRef image
Oct 24 12:55:43 hayks-air com.apple.iphonesimulator.launchd.658a077d[17635] (UIKitApplication:com.hhayotsyan.amazeing.free[0x1a68][17678]) <Notice>: Service exited due to signal: Killed: 9
Oct 24 12:55:43 hayks-air com.apple.iphonesimulator.launchd.658a077d[17635] (UIKitApplication:com.hhayotsyan.amazeing.free[0x1a68]) <Notice>: Service only ran for 0 seconds. Pushing respawn out by 2147483647 seconds.
Oct 24 12:55:43 hayks-air ba
[12:56:01] >>    ckboardd[17636] <Warning>: Application 'UIKitApplication:com.hhayotsyan.amazeing.free[0x1a68]' exited abnormally with signal 9: Killed: 9
Oct 24 12:55:43 hayks-air profiled[17640] <Notice>: (Note ) MC: Waiting for DataMigrator...
Oct 24 12:55:47 --- last message repeated 3 times ---
Oct 24 12:55:47 hayks-air lsd[17657] <Warning>: LaunchServices: Currently 0 installed placeholders: (
    )
 
 
I have build both 6.1 and 7.0beta SDKs and runned on iOS 7.0.3 and iOS 6.1 Simulators.
Hello World app crashes too with the same result. I tried to remove everything from ~/Library/Application Support/iPhone Simulator/ and then rerun again, restarted computer and xcode.
 
On device everything is working just fine. If you need additional details on problem let me know


[TOPIC: post.html]
#17

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

@haik

 

that's interessting. you have another error message though. your's pointing to memory issues. see the post here:

http://stackoverflow.com/questions/5959038/memory-leak-application-exited-with-signal-9



[TOPIC: post.html]
#18

hayk

[GLOBAL: userInfoPane.html]
hayk
  • Enthusiast

  • 51 posts
  • Corona SDK

@romanfischer 

 

I saw that and thought that it is from my last modifications of code. But all my old games and even Coronas Sample Hello World application crashes too. 



[TOPIC: post.html]
#19

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

@rob miracle

 

maybe this is helpful. seems that projects have to point to provisioning profiles in xcode 5 too...

 

http://stackoverflow.com/questions/18818381/xcode-5-code-signing-entitlement-errors



[TOPIC: post.html]
#20

mobilefun4me

[GLOBAL: userInfoPane.html]
mobilefun4me
  • Enthusiast

  • 48 posts
  • Corona SDK

I personally never like Xcode managing my provisioning profiles.   Consider this:

Quit Corona SDK.

Open up the terminal.

 

cd ~/Library/MobileDevice/Provisioning\ Profiles/

rm *.mobileprovision

 

Then hand download your profiles from the provisioning portal.  There is a real good change that Finder has that library folder hidden so you will probably have to use the command line to move them into the right place (or you can google on how to get the library folders visible to Finder again).

 

mv pathtowhereyoudownloadedthem/*.mobileprofile .

 

That's assuming your still in the Provisioning Profiles folder.  Note the <space> dot at the end of the line.  Lets say you downloaded them to your Downloads folder:

 

mv ~/Downloads/*.movileprofile .

 

Then restart Corona SDK and try building.

Provisioning profiles worked great until I downloaded Xcode 5?   



[TOPIC: post.html]
#21

nAppsamar

[GLOBAL: userInfoPane.html]
nAppsamar
  • Enthusiast

  • 30 posts
  • Corona SDK

With Mavericks, xcode 5, version Corona 1240. I have the same problem.

Hello World sample app offers the same result.. It does not work on a device with IOS 7.

 

System log "Service exited due to signal: Killed: 9"



[TOPIC: post.html]
#22

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

okay I just checked my codesigning by entering following command into the terminal:

 

codesign -d --entitlements - /Users/myname/Desktop/testapp.app

 

 

output:

 

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>application-identifier</key>
	<string>RNDMRND88M.com.mycompany.testapp</string>
	<key>keychain-access-groups</key>
	<array>
		<string>RNDMRND88M.com.mycompany.testapp</string>
	</array>
	<key>get-task-allow</key>
	<true/>
</dict>
</plist>

 

looks allright, doesn't it?

 

adhoc doesn't work either.



[TOPIC: post.html]
#23

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,569 posts
  • Corona Staff

Have you gone into Xcode and had it sync your profiles also?



[TOPIC: post.html]
#24

searchm

[GLOBAL: userInfoPane.html]
searchm
  • Contributor

  • 187 posts
  • Corona SDK

yep, if I didn't I wouldn't have the option to choose from in corona before building it.



[TOPIC: post.html]
#25

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 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




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