I recently integrated GameSparks into our Unity iOS game, and everything works great, except when I come to build an .ipa for upload to TestFairy. Everything used to work fine, but now, when I try to export the .ipa from the archive in Xcode, I get a very unhelpful error telling me that code signing has failed.
Just before it tries to build, and fails, I see this dialogue:
Does the "0 entitlements" after the GameSparks bundle indicate a problem?
I have checked the various logs and I can't see anything helpful, I've rebuilt my distribution certificate and provisioning profile, all the usual things to check when code signing fails. My app didn't have an app id set, so I've set that up now, just in case that was a problem. The app builds and runs just fine, and will build and code sign the archive. It's the .ipa export where it fails
I'm not even sure if this is a GameSparks problem, I thought I'd ask here in case anyone has any ideas. I've spent a couple of days on this so far and it's driving me insane.
Best Answer
C
Christian Southgate
said
almost 7 years ago
Hi Tam - I discovered that most of the problem was caused by the GameSparks post process script not being called when building on Jenkins. This is a problem with Unity. I fixed this by adding the postprocess code directly into the build script.
No other errors can be seen in the logs, as far as I can tell. I can post them if someone wants to see them.
This is just as helpful as the pop-up error message, which simply says "code sign failed"
If I completely remove GameSparks from my Unity project, everything works fine, I can build .ipa's as before.
I can provide any other info if required, any help is very very gratefully received!
Customer Support
said
almost 7 years ago
Thanks for the info Christian. We're looking into it currently.
Thanks,
Oisin.
R
Rich Joslin
said
almost 7 years ago
I was able to work around this by deleting "Unity-iPhone/Frameworks/Plugins/gamesparksunityosx.bundle" from the Xcode project. Removing it shouldn't cause any problems, but your results may vary.
1 person likes this
C
Christian Southgate
said
almost 7 years ago
Rich - that works!!! Thanks very much, I didn't even think of deleting that because I assumed it was a vital component...
1 person likes this
R
Rich Joslin
said
almost 7 years ago
The latest SDK should fix the issue but I haven't had a chance to try it yet.
Customer Support
said
almost 7 years ago
Hi Rich, Just wanted to thank you on behalf of the community and the GameSparks team for you valuable contributions!
Regards, Patrick.
1 person likes this
T
Tam Developers
said
almost 7 years ago
We tried the latest SDK but it didn't fix this issue.
C
Christian Southgate
said
almost 7 years ago
Answer
Hi Tam - I discovered that most of the problem was caused by the GameSparks post process script not being called when building on Jenkins. This is a problem with Unity. I fixed this by adding the postprocess code directly into the build script.
s
sun monkey
said
almost 7 years ago
With me, I must delete Assets/Plugins/gamesparksunityosx.bundle/ folder in Unity Project and rebuild Ios project
F
Friedrich Wessel
said
almost 7 years ago
Same here - we updated to the newest SDK some days ago - and this thing is blocking our signing process.
Can you give us a little bit more inside, where and when the postbuild script is supposed to delete this file - so we can try to fix the issue on our own ?
Thanks
P.S: Release Notes would help a lot ! Could have saved me days of research until finaly suspect gamesparks blocking the signing !
A
Andrew Keplinger
said
almost 7 years ago
I tried many searches to figure out what was going on with the code signing. It didn't occur to me to delete the bundle and it probably would be a blocker with other developers. It certainly would be helpful to make finding the solution a bit easier.
B
Benjamin Jouan
said
almost 7 years ago
In order to get your post process scripts called when building from the command line (ie: Jenkins) add the following to your command "-buildTarget ios"
When will the new sdk be released ?
C
Christian Southgate
said
almost 7 years ago
Thanks Benjamin, you have saved me a great deal of pain! I had no idea what the buildTarget option was for!
J
Jonathan Hopkinson
said
almost 7 years ago
I am getting this problem also. Where do I put the "-buildTarget ios" value?
Christian Southgate
Hi,
I recently integrated GameSparks into our Unity iOS game, and everything works great, except when I come to build an .ipa for upload to TestFairy. Everything used to work fine, but now, when I try to export the .ipa from the archive in Xcode, I get a very unhelpful error telling me that code signing has failed.
Just before it tries to build, and fails, I see this dialogue:
Does the "0 entitlements" after the GameSparks bundle indicate a problem?
I have checked the various logs and I can't see anything helpful, I've rebuilt my distribution certificate and provisioning profile, all the usual things to check when code signing fails. My app didn't have an app id set, so I've set that up now, just in case that was a problem. The app builds and runs just fine, and will build and code sign the archive. It's the .ipa export where it fails
I'm not even sure if this is a GameSparks problem, I thought I'd ask here in case anyone has any ideas. I've spent a couple of days on this so far and it's driving me insane.
Hi Tam - I discovered that most of the problem was caused by the GameSparks post process script not being called when building on Jenkins. This is a problem with Unity. I fixed this by adding the postprocess code directly into the build script.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstChristian Southgate
A bit of extra info - I'm using Unity 5.3.2f1, and Xcode 7.2.1.
This is what I get in IDEDistribution.critical.log (this is the entire file):
2016-02-09 20:08:24 +0000 [MT] Presenting: Error Domain=IDEFoundationErrorDomain Code=1 "Codesign failed" UserInfo={NSLocalizedDescription=Codesign failed}
No other errors can be seen in the logs, as far as I can tell. I can post them if someone wants to see them.
This is just as helpful as the pop-up error message, which simply says "code sign failed"
If I completely remove GameSparks from my Unity project, everything works fine, I can build .ipa's as before.
I can provide any other info if required, any help is very very gratefully received!
Customer Support
Thanks for the info Christian.
We're looking into it currently.
Thanks,
Oisin.
Rich Joslin
I was able to work around this by deleting "Unity-iPhone/Frameworks/Plugins/gamesparksunityosx.bundle" from the Xcode project. Removing it shouldn't cause any problems, but your results may vary.
1 person likes this
Christian Southgate
Rich - that works!!! Thanks very much, I didn't even think of deleting that because I assumed it was a vital component...
1 person likes this
Rich Joslin
Customer Support
Hi Rich,
Just wanted to thank you on behalf of the community and the GameSparks team for you valuable contributions!
Regards, Patrick.
1 person likes this
Tam Developers
We tried the latest SDK but it didn't fix this issue.
Christian Southgate
Hi Tam - I discovered that most of the problem was caused by the GameSparks post process script not being called when building on Jenkins. This is a problem with Unity. I fixed this by adding the postprocess code directly into the build script.
sun monkey
With me, I must delete Assets/Plugins/gamesparksunityosx.bundle/ folder in Unity Project and rebuild Ios project
Friedrich Wessel
Same here - we updated to the newest SDK some days ago - and this thing is blocking our signing process.
Can you give us a little bit more inside, where and when the postbuild script is supposed to delete this file - so we can try to fix the issue on our own ?
Thanks
P.S: Release Notes would help a lot ! Could have saved me days of research until finaly suspect gamesparks blocking the signing !
Andrew Keplinger
I tried many searches to figure out what was going on with the code signing. It didn't occur to me to delete the bundle and it probably would be a blocker with other developers. It certainly would be helpful to make finding the solution a bit easier.
Benjamin Jouan
In order to get your post process scripts called when building from the command line (ie: Jenkins) add the following to your command "-buildTarget ios"
When will the new sdk be released ?
Christian Southgate
Thanks Benjamin, you have saved me a great deal of pain! I had no idea what the buildTarget option was for!
Jonathan Hopkinson
I am getting this problem also. Where do I put the "-buildTarget ios" value?
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics