iOS Device build failed - Code Signing Error / Xcode couldn't find any .....

Mithheru

  • Posts: 19
Hi,

I just finished building a new Game that plays a wide range of Viking Age Tafl games (Hnefatafl, Tablut etc).  My game is all written in Stencyl and my AI Player beats all other apps on any platform that can play similar games.  It all works perfectly in Flash, and is ready for final testing prior to launch.  This is where I start to get unstuck:

I have followed the instructions following the link under the Stencyl mobile settings page, and have registered as a developer with Apple, and acquired all the necessary distribution certificates.  When I try to build the project on an iOS Device platform in Stencyl I get the following error.

This suggests that Xcode has not installed the certificates.  I have several times recreated the certificates with apple, downloaded them, and double clicked them which then opens Xcode.  It still seems that the certificates in Xcode don't match the ones specific to this app.  Any ideas?  I have now spent many many hours trying to do everything I can, but nothing seems to work.

I've also attached a view of my certificates in Xcode.  Xcode won't let me delete them, so I wonder if it won't let me update or correct one, perhaps thats the problem?

This is my first App, so please try to explain things as easily as you can!


Many thanks,

Mike.


Part of log from Stencyl:

2017-10-30 22:06:26,107 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] Check dependencies
2017-10-30 22:06:26,113 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] warning: iOS 11.0.0 does not support armv7
2017-10-30 22:06:26,113 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] Code Signing Error: No profiles for 'com.fearn.thevikinggame' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'com.fearn.thevikinggame'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
2017-10-30 22:06:26,113 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.0'
2017-10-30 22:06:26,113 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] ** BUILD FAILED **
2017-10-30 22:06:26,113 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] The following build commands failed:
2017-10-30 22:06:26,113 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib]    Check dependencies
2017-10-30 22:06:26,113 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib] (1 failure)
2017-10-30 22:06:26,130 DEBUG [pool-1-thread-2] stencyl.sw.util.Util: Process 'haxelib' exited with code: 1
2017-10-30 22:06:26,131 ERROR [pool-1-thread-2] stencyl.sw.io.write.resource.HXWriter: Failed: Running iOS. (Return code: 1)

gplar

  • Posts: 1115
Build xCode project (Publish-Mobile-xCode Project), ignore the haxe download warning and save project.
Open project in xCode and run on some emulator which fails.
Go back to Stencyl and build for device or appstore.
It seems xCode then sorts the certificates.

ceosol

  • *
  • Posts: 2279
Also, I believe you need a subscription to  export to iOS.

Mithheru

  • Posts: 19
I upgraded to the full version of Stencyl.  I have published the project for xCode, but I'm not sure how to open it in xCode. Xcode cannot open the created folder just by itself, so is there a particular file I should open in xCode?

Mithheru

  • Posts: 19
Okay, I got it into Xcode, the certificates seem now to be okay.  Thank you very much for that!

However, now I have a new error.

I have now got a new error, which I don't follow.  I fully tested it in flash before, so I know the code itself all looks fine.

colburt187

  • *
  • Posts: 2416
Can you explain a bit more about what is going wrong?

Mithheru

  • Posts: 19
Sorry, I reposted the error as a new issue as it was unrelated to the original one.

The second issue was caused because I didn't set the iOS minimum version and target version correctly.   On the other link, it was suggested to adjust the minimum and target version.  I have now set the target version to 11.1 and the minimum version to 9.0.  Seems to work.

I then encountered another error, which appeared to have been caused by having multiple duplicate certificates in keychain.

I am now able to test on iPad for the first time.  Progress is now nearly complete having resolved a few scaling issues and other minor bugs.

Regarding the scaling issues, I note that new 'images' don't scale correctly.  I wanted a text box with a border, which could be rotated by 90 degrees.  Depending on the scaling, the border (one image drawn onto of a slightly larger black filled image) differs in size, and is not the same width all around.  There should be a fix to Stencyl to fix this.

Anyway,  I have now adjusted the code to take specific account of the scaling when creating new images and drawing them.