Stencyl 3.4.0 is now out. Get it now!

Bug Issue: Codesigning not automated


Pages: 1

binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 01:39:21 am
I'm very new to using Stencyl and just upgraded to Studio. I have my iPhone 7 connected to my Mac and I'm trying to test play a game I just made that has virtually nothing in it other than a tileset.  Logs are attached via link.

Any help would be amazing! I want to make sure I can get this to work for a school project.

stencyl 3.5.0 beta1
iphone 7 - 10.3.3
macbook air -  el capitan 10.11.5
xcode - 8.2.1

LOG LINK: https://drive.google.com/file/d/1RQnTFDEpz7BlVmh-Aml6GesB-hYe-JN2/view?usp=sharing
« Last Edit: February 06, 2018, 02:51:20 am by Justin »


Issue updated by binx182 - February 06, 2018, 01:39:50 am
  • Issue renamed from "Cant Test Game - iPhone 7" to "Cant Test Game on Device - iPhone 7"


Justin

  • Master Stencyler
  • *
February 06, 2018, 02:41:01 am
From the log:

Code: [Select]
=== BUILD TARGET Test OF PROJECT Test WITH CONFIGURATION Release ===
Check dependencies
Signing for "Test" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)

It looks like it's building the game alright, but fails to test on the device because it can't codesign from Stencyl.

First, confirm that you have your development team set in Stencyl. Settings > Mobile > Certificates (iOS). Search for "Team ID" on this Stencylpedia page to see what you need to put in the "iOS Team ID" field. The others shouldn't need to be set yet.

The game probably still won't build in Stencyl. You'll need to get codesigning done in Xcode.

Export the game to an Xcode project (Publish > Mobile > Xcode Project), open that in Xcode (use Tools > External IDE > Launch XCode to open Xcode configured for use with Stencyl), and then test the game on your device from there, it should take care of the necessary codesigning automatically. Then you can test on device straight from Stencyl.

We'll try to get this sorted out for the final 3.5 release so that the intermediate step of opening and testing from Xcode is no longer needed.
« Last Edit: February 06, 2018, 02:49:59 am by Justin »


Issue updated by Justin - February 06, 2018, 02:51:33 am
  • Issue renamed from "Cant Test Game on Device - iPhone 7" to "Codesigning not automated"
  • Tags added: 3.5 HP


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 11:58:34 am
Hey Justin, thank you so much for your help! I wasn't sure about this but I thought I saw something that you could test games on your iphone without having the $99 paid apple developer account. Is this true or am I just not doing something correctly? Sorry if its a noob question, just trying to avoid spending another hundred dollars.

Thanks!
Kyle


Justin

  • Master Stencyler
  • *
February 06, 2018, 01:52:15 pm
I've tried to figure that out before, but I'm not sure. It seems that it was possible when the Stencylpedia articles were originally written, but I didn't have iOS devices or a Mac of my own back then.

Apple may have changed some things, but it may still work somehow. If anybody can get it working by exporting their game to Xcode and then following a guide on the internet (for Xcode 9), then we might be able to get that working in Stencyl as well. And if we can't get that integrated, but it's possible through Xcode, then at least users will be able to test for free in that way. I'm pretty sure that certain capabilities will be unavailable when testing for free, though, if it does work.

It would also be good to update Stencylpedia if it's found to still be possible in some way.

You'll need to pay the $99 eventually if you want to publish. If you don't want to go through too much hassle, perhaps you can test on the iOS simulator or other platforms in the meantime.
« Last Edit: February 06, 2018, 01:54:48 pm by Justin »


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 02:33:18 pm
Well I think I will just bite the bullet and pay for the developer membership. I seriously appreciate your help though! I just want to get this set up correctly. Thank you again!!!!


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 05:03:27 pm
So, I think I've got all of my certificates and such installed correctly but maybe not... I'm not sure at all what these errors are in my logs, any help would be great:

Code: [Select]
2018-02-06 03:09:46,471 DEBUG [main] stencyl.sw.loc.LanguagePack: Reading... lang/en/global-errors.lang
2018-02-06 03:09:46,597 DEBUG [main] stencyl.sw.loc.LanguagePack: Reading... lang/en/global-errors.lang
2018-02-06 03:09:49,621 ERROR [GameInterfaceServer] stencyl.sw.util.net.SocketServer: Address already in use (Bind failed)
2018-02-06 03:10:17,346 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]     export TAPI_VERIFY_MODE=ErrorsOnly
2018-02-06 03:11:44,542 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/events/UncaughtErrorEvents.cpp
2018-02-06 03:11:44,594 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/events/UncaughtErrorEvent.cpp
2018-02-06 03:11:46,212 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/events/SecurityErrorEvent.cpp
2018-02-06 03:11:51,105 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/events/IOErrorEvent.cpp
2018-02-06 03:11:56,016 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/events/ErrorEvent.cpp
2018-02-06 03:11:59,245 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/TypeError.cpp  [haxe,release]
2018-02-06 03:12:00,411 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/SecurityError.cpp  [haxe,release]
2018-02-06 03:12:00,919 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/RangeError.cpp  [haxe,release]
2018-02-06 03:12:01,581 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/IllegalOperationError.cpp  [haxe,release]
2018-02-06 03:12:02,032 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/EOFError.cpp  [haxe,release]
2018-02-06 03:12:02,700 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/IOError.cpp  [haxe,release]
2018-02-06 03:12:03,134 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/ArgumentError.cpp  [haxe,release]
2018-02-06 03:12:03,823 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]  - src/openfl/errors/Error.cpp  [haxe,release]
 
« Last Edit: February 06, 2018, 06:36:41 pm by Justin »


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 05:31:20 pm
Actually I think I wrote my Team ID incorrectly but that has been fixed now. Seeing some similar errors but a few new ones...

Code: [Select]
2018-02-06 20:12:23,556 DEBUG [main] stencyl.sw.loc.LanguagePack: Reading... lang/en/global-errors.lang
2018-02-06 20:12:23,687 DEBUG [main] stencyl.sw.loc.LanguagePack: Reading... lang/en/global-errors.lang
2018-02-06 20:12:28,862 ERROR [GameInterfaceServer] stencyl.sw.util.net.SocketServer: Address already in use (Bind failed)
2018-02-06 20:12:40,839 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] 2018-02-06 20:12:40.838 xcodebuild[23458:343097] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Missing ';' on line 220" UserInfo={NSDebugDescription=Missing ';' on line 220}}
2018-02-06 20:12:40,841 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] xcodebuild: error: Unable to read project 'Test.xcodeproj'.
2018-02-06 20:12:40,853 ERROR [pool-2-thread-1] stencyl.sw.app.tasks.buildgame.GameBuilder: Failed: Running iOS. (Return code: 1)
2018-02-06 20:12:40,855 ERROR [pool-2-thread-1] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.
2018-02-06 20:21:44,330 INFO  [Thread-20] stencyl.sw.util.StreamGobbler: [haxelib]     export TAPI_VERIFY_MODE=ErrorsOnly
2018-02-06 20:22:33,257 ERROR [pool-2-thread-2] stencyl.sw.app.tasks.buildgame.GameBuilder: Failed: Running iOS. (Return code: 1)
2018-02-06 20:22:33,257 ERROR [pool-2-thread-2] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.
« Last Edit: February 06, 2018, 06:36:57 pm by Justin »


Justin

  • Master Stencyler
  • *
February 06, 2018, 06:41:59 pm
Code: [Select]
2018-02-06 20:12:40,839 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] 2018-02-06 20:12:40.838 xcodebuild[23458:343097] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Missing ';' on line 220" UserInfo={NSDebugDescription=Missing ';' on line 220}}

This seems suspect.

Check [stencylworks]/games-generated/Export/ios/Test.xcodeproj/project.pbxproj (or a different path if you exported it), line 220 in a text editor. Or you can upload the .pbxproj file here.
« Last Edit: February 06, 2018, 06:42:13 pm by Justin »


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 07:34:50 pm
Here is the actual full log zip file: https://drive.google.com/open?id=1hHTE-lgy0f-NL8BNG0pgfc_FLWYdsS4T

And here is the full Test game zip file that has the file you said to upload in it:
https://drive.google.com/open?id=1Yc_4pLyAa_hWeO7vn4RR_tFiRDDMNt3q


Justin

  • Master Stencyler
  • *
February 06, 2018, 08:24:19 pm
The .pbxproj looks fine. I'm assuming the log I was looking at was from before you fixed the incorrectly entered Team ID.

What I see now is basically back to the original issue again, except that you have the Team ID entered this time. Did you export to Xcode and try to test on device from there?

Code: [Select]
No profiles for 'com.stencyl.monstermode' were found:  Xcode couldn't find a provisioning profile matching 'com.stencyl.monstermode'.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
« Last Edit: February 06, 2018, 08:25:43 pm by Justin »


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 11:01:51 pm
Yes, I'm getting a lot further than before but when I select Run I keep  getting build failed and this is the error:

Attached Screenshot:
https://drive.google.com/open?id=1DBAYRpJLybNWSObZ8KQF0_ctgnNNM-fw
« Last Edit: February 06, 2018, 11:02:19 pm by binx182 »


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 11:03:33 pm
since I have 10.3 installed on my iphone I even downloaded a newer version of xcode and copied the 10.3 folder from the newer xcode and into my older xcode folder


Justin

  • Master Stencyler
  • *
February 06, 2018, 11:16:16 pm
Did you open Xcode from within Stencyl? (As mentioned in my first reply, you'll need to open Xcode using Tools > External IDE > Launch XCode in Stencyl.)


binx182

  • Subscriber - Stencyl Studio
  • *
February 06, 2018, 11:22:37 pm
Yes, I get this screen and I select the Test export at the top of the list but then its the same error as mentioned in my last post

Screenshot:
https://drive.google.com/open?id=1ho5Q0ZGNg5vLHTxbETXIh85gmZwn0szl


Justin

  • Master Stencyler
  • *
February 09, 2018, 04:00:08 am
Sorry for taking a while to get back about this. I'm kinda flustered about the Haxe error in Xcode, but between debugging that and going ahead with the automatic codesigning improvement, I opted for the latter.

Please try b9709 and let me know if you can test on your device. Hopefully you'll be able to test right from Stencyl without touching Xcode.
« Last Edit: February 09, 2018, 04:01:06 am by Justin »


Justin

  • Master Stencyler
  • *
February 12, 2018, 11:25:09 pm
Have you had a chance to try out a recent build to see if you can compile for your device?
  • Issue Assigned from (none) to Justin


Issue updated by Justin - February 13, 2018, 04:51:07 am
  • Status changed from New to Need Info


binx182

  • Subscriber - Stencyl Studio
  • *
February 13, 2018, 05:59:49 am
Hey Justin, I'm sorry I was away for the weekend. I was able to get all of my certificates installed correctly and then I uninstalled Stencyl and re-installed it and everything seems to be working perfectly now! Test playing it on my phone! Thank you for all of your help!!!


Justin

  • Master Stencyler
  • *
February 13, 2018, 06:38:36 am
Sweet. Thanks.
  • Status changed from Need Info to Resolved
  • Tags removed: 3.5 HP


Pages: 1

Details

  • Reported
    February 06, 2018, 01:39:21 am
  • Updated
    February 13, 2018, 06:38:36 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Compiling/Testing Games

Tags