Can't test game on iOS device

shortwave

  • Posts: 30
Hi there,

My gamesalad account has just expired and I've been looking around for alternatives, Stencyl seems the best I've found so far for what I'm doing.  I'm having problems testing anything I make though.  Basically it always works the first time, compiles the app and puts it on iPad.  Whenever I try again it doesn't work, just sticks on "compiling" for ever.  If I delete app and make a new one it will usually work first time again.  With a new install of Stencyl it always seems to work once.  Does anyone have any idea what I'm doing wrong?

Sorry if this is a stupid question!

SadiQ

  • Posts: 1795
"Compiling" for ever usually has an error that can be seen in the Log viewer. Check the error message and post it here.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

shortwave

  • Posts: 30
Cool, here's the log.  It was too long to post so I just posted the last bit....

Thanks

[ERR] java.lang.NullPointerException
[ERR] java.lang.NullPointerException
[LOG]     setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Stencyl-full/plaf/neko-mac:/Applications/Stencyl-full/plaf/haxe:/Applications/Stencyl-full/plaf:/usr/bin:/bin:/usr/sbin:/sbin"
[LOG] Unexpected problem on thread AWT-EventQueue-0: null
[LOG]     builtin-productPackagingUtility /Users/shortwave/Library/MobileDevice/Provisioning\ Profiles/B51821DE-B228-4338-A07B-8CDE51634E2D.mobileprovision -o /Users/shortwave/stencylworks/games-generated/Test/Export/ios/build/Release-iphoneos/Test.app/embedded.mobileprovision
[LOG] ProcessProductPackaging /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/Entitlements.plist build/Test.build/Release-iphoneos/Test.build/Test.xcent
[LOG]     cd /Users/shortwave/stencylworks/games-generated/Test/Export/ios
[LOG]     setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Stencyl-full/plaf/neko-mac:/Applications/Stencyl-full/plaf/haxe:/Applications/Stencyl-full/plaf:/usr/bin:/bin:/usr/sbin:/sbin"
[LOG]     builtin-productPackagingUtility /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/Entitlements.plist -entitlements -format xml -o /Users/shortwave/stencylworks/games-generated/Test/Export/ios/build/Test.build/Release-iphoneos/Test.build/Test.xcent
[LOG] CodeSign build/Release-iphoneos/Test.app
[LOG]     cd /Users/shortwave/stencylworks/games-generated/Test/Export/ios
[LOG]     setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
[LOG]     setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Stencyl-full/plaf/neko-mac:/Applications/Stencyl-full/plaf/haxe:/Applications/Stencyl-full/plaf:/usr/bin:/bin:/usr/sbin:/sbin"
[LOG]     Using code signing identity "iPhone Developer: Shortwave (U5UY2J4QN2)" and provisioning profile "iOS Team Provisioning Profile: *" (B51821DE-B228-4338-A07B-8CDE51634E2D)
[LOG]     codesign --force --sign 879395DF1B68C944F17679CD38FC8D495B289E10 --resource-rules=/Users/shortwave/stencylworks/games-generated/Test/Export/ios/build/Release-iphoneos/Test.app/ResourceRules.plist --entitlements /Users/shortwave/stencylworks/games-generated/Test/Export/ios/build/Test.build/Release-iphoneos/Test.build/Test.xcent /Users/shortwave/stencylworks/games-generated/Test/Export/ios/build/Release-iphoneos/Test.app
[LOG] Validate build/Release-iphoneos/Test.app
[LOG]     cd /Users/shortwave/stencylworks/games-generated/Test/Export/ios
[LOG]     setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Stencyl-full/plaf/neko-mac:/Applications/Stencyl-full/plaf/haxe:/Applications/Stencyl-full/plaf:/usr/bin:/bin:/usr/sbin:/sbin"
[LOG]     setenv PRODUCT_TYPE com.apple.product-type.application
[LOG]     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/shortwave/stencylworks/games-generated/Test/Export/ios/build/Release-iphoneos/Test.app
[LOG] ** BUILD SUCCEEDED **
[LOG]  - Changing directory: Export/ios/bin
[LOG] Running command: RUN
[LOG]  - Running process: xcodebuild -version
[LOG]  - Running command: /Applications/Stencyl-full/plaf/haxe/lib/hxtools/1,1,6/templates/bin/ios-deploy install --timeout 5 --bundle /Users/shortwave/stencylworks/games-generated/Test/Export/ios/build/Release-iphoneos/Test.app
[LOG] Assertion failed: (AMDeviceStartService(device, CFSTR("com.apple.afc"), &afcFd, NULL) == 0), function handle_device, file ios-deploy.c, line 480.
[LOG] ------ Install phase ------
[LOG] [....] Waiting up to 5 seconds for iOS device to be connected
[LOG] [  0%] Found device (fb88c90a82f1c610f3215793494cbf7c139f3147), beginning install
[LOG] Finished building for iOS (or errored out): 1

shortwave

  • Posts: 30
Anyone have any ideas?  Have I posted the wrong part of the log file?  Or is it back to game salad for me?  Nooo!

SadiQ

  • Posts: 1795
You have click on Debug -> Logs -> Generate Logs and post the zip file in here so that somebody can look at them.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Jon

  • *
  • Posts: 17524
A few people have hit this, and it stems from the 3rd party Mac <-> device connector service that we and some other projects use. People have gotten past it but haven't pinpointed what helped.

mvmsaikrishna

  • Posts: 83
I have had this frustrating error for an hour. After trying above links and several others, what worked for me was restarting the mac.
Just posting this cause this might help someone.