Jump to content
Gary

iOS compilation error

Recommended Posts

Hi, I am using “latest” version of Cocoon, I already tried to change it to the older one for compilation as read this could work but has not. When I am trying to compile iOS app (Construct 2 game), it goes:

[DEBUG] IOSBuilder - e[39m[build] remove keychain
security: SecKeychainDelete: The specified keychain could not be found.

I am using right keychain and provisioning profile since the compilation was successful many times with these two weeks ago and now it stopped working - I did not change anything.

Can you please tell me what to do?

Share this post


Link to post

Hi Gary,

welcome to the forum. I just tried to build my iOS project and it's working fine. However I have not uploaded any certificate. I sign the .xcodearchive file with XCode later.

Have you tried to unselect the signing certificate already? Does it work then?

Regards

Andy

Share this post


Link to post

Hi Andy,

 

thank you for message, I tried it with no key and the compilation failed again with the same error: 

 

[36m[2017-08-31 08:26:10.208] [DEBUG] IOSBuilder - [39m[build] remove keychain
security: SecKeychainDelete: The specified keychain could not be found.

Share this post


Link to post

Hi Gary,

can you please attach the content of your config.xml file from Cocoon? Also what cocoon version are you using? "Latest"?

I only can say that it works fine on my end. Maybe it's a thirdparty plugin causing the build crash?

Regards

Andy

Share this post


Link to post

Hi Andy,

I compiled and signed the app locally successfully, thank you very much! However, the app just display cocoon splash screen and then just black space appears and it remains ages with no change. Do you know what could be wrong?

Share this post


Link to post
On 2.9.2017 at 6:21 PM, Gary said:

Hi Andy,

I compiled and signed the app locally successfully, thank you very much! However, the app just display cocoon splash screen and then just black space appears and it remains ages with no change. Do you know what could be wrong?

Hi Gary,

that are good news. Well, basically a black screen issue is caused by a missing plugin either in Cocoon or your project. If you are using Cocoon Admob ads in your project, you also must install the corresponding plugin for it in your cocoon project. However if it had worked before, it's strange that it now doesn't. At the moment I'm not able to build my iOS project in Cocoon. I keep getting this issue.

Quote

COMPILER ERROR: Internal compiler error CORDOVA LOG: No log available

Does it work for you?

Regards

Andy

Share this post


Link to post

Hi Andy,

 

I tried another app and I can launch it by signing locally but there is the black screen again and I am pretty sure I am using a have installed the right plugins in both cocoon and cocoon project. Do you know what else can cause this problem?

When I checked my log, the only error was this one: kCLClientRegistrationResultFailedUnavailable

otherwise everything should be ok but the game cannot launch, only the cocoon logo can

I think this has to do with the signing problem again.

Share this post


Link to post
On 8.9.2017 at 4:15 PM, Gary said:

Hi Andy,

 

I tried another app and I can launch it by signing locally but there is the black screen again and I am pretty sure I am using a have installed the right plugins in both cocoon and cocoon project. Do you know what else can cause this problem?

When I checked my log, the only error was this one: kCLClientRegistrationResultFailedUnavailable

otherwise everything should be ok but the game cannot launch, only the cocoon logo can

I think this has to do with the signing problem again.

Hi @Gary

can you run your game code in the developer app? There you can access the error log and see what's causing the black screen. The error message you posted above is completely new to me. What framework do you use to code your games? Can you attach your config.xml file? Maybe it's an unsupported plugin which you are using.

You can try to remove all plugins and re-add them piece by piece, till the issue comes up. I'm aware that this is very time consuming, however the best method to find the root of the problem. I only can say that it's working for me. I'm using Construct 2 to build my games.

Regards

Andy

Share this post


Link to post

Hi Andy:

I did what you advised but it does not work :( (still black screen after the cocoon splash screen appears on my iphone and thats it) Would you be willing to try to launch the app on your own iphone? Maybe the bug is elsewhere. I am sending the cocoon project zip and list of plugins. I added these since when creating a new app in itunes connect, it must contain inapp purchases and game center by default. I am using cordova. I cannot compile the developer app, attached is confix.xml and this is error log of compiling the developer app:

 

COMPILER ERROR: 

Internal compiler error

CORDOVA LOG: 

eveloper/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._options in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._port in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._registrationService in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._resolutionService in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._serverName in:
    /U�[32m[2017-09-12 04:52:17.527] [INFO] IOSBuilder - �[39msers/ideateca/Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._suspendInBackground in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._syncQueue in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServerHandler._matchBlock in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_METACLASS_$_GCDWebServer in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_METACLASS_$_GCDWebServerHandler in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_CLASS_$_GCDWebServerErrorResponse in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServerErrorResponse.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServerErrorResponse.o)
duplicate symbol _OBJC_METACLASS_$_GCDWebServerErrorResponse in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServerErrorResponse.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServerErrorResponse.o)
ld: 162 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
sers/ideateca/Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._suspendInBackground in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServer._syncQueue in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_IVAR_$_GCDWebServerHandler._matchBlock in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_METACLASS_$_GCDWebServer in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_METACLASS_$_GCDWebServerHandler in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServer.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServer.o)
duplicate symbol _OBJC_CLASS_$_GCDWebServerErrorResponse in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServerErrorResponse.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServerErrorResponse.o)
duplicate symbol _OBJC_METACLASS_$_GCDWebServerErrorResponse in:
    /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/GCDWebServerErrorResponse.o
    /workspace/platforms/ios/PhysicsTest/Plugins/com.ludei.canvasplus.ios/libCocoon.a(GCDWebServerErrorResponse.o)
ld: 162 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)�[31m[2017-09-12 04:52:17.786] [ERROR] IOSBuilder - �[39m** ARCHIVE FAILED **


The following build commands failed:
** ARCHIVE FAILED **


The following build commands failed:�[31m[2017-09-12 04:52:17.787] [ERROR] IOSBuilder - �[39mLd /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/PhysicsTest normal arm64
(1 failure)
Ld /Library/Developer/Xcode/DerivedData/PhysicsTest-easrvqkpnedflpayrfjorgwaoiib/Build/Intermediates/ArchiveIntermediates/PhysicsTest/IntermediateBuildFilesPath/PhysicsTest.build/Release-iphoneos/PhysicsTest.build/Objects-normal/arm64/PhysicsTest normal arm64
(1 failure)�[36m[2017-09-12 04:52:17.832] [DEBUG] IOSBuilder - �[39m[build] clean
�[36m[2017-09-12 04:52:17.833] [DEBUG] IOSBuilder - �[39m[build] remove keychain
security: SecKeychainDelete: The specified keychain could not be found.

coocon.zip

Screen Shot 2017-09-12 at 13.48.23.png

Screen Shot 2017-09-12 at 13.47.58.png

Share this post


Link to post
19 hours ago, Gary said:

Screen Shot 2017-09-12 at 13.48.23.png

Hi @Gary

I see what your issue is. Your config.xml file was overwritten by the construct 2 config.xml file. You MUST delete the config.xml file which comes from the c2 export before you zip your content.

Can you remove your cocoon project, then export your c2 project and delete the "config.xml" file from the output. Then zip it and upload it as new project to cocoon. Add all your used plugins which you are using also in C2, then build again. If this still doesn't work, you can PM me your capx file and I'll have a look at it and try to build it on my end.

Regards

Andy

Share this post


Link to post

Hi Andy, I tried it and it still does not work. What is weird is that when I see into the config.xml section in cocoon, I can see exactly the same config.xml as previously before the deleting case. Maybe the problem is really the plugins. I have added no plugins into the construct2 game but the app should include inpp purchases and game center by default as it cant have been changed when creating the app in itunes.connect. Should I add plugin for inapps and game center in the game? Another thing is I am using cordova that is added in the construct project during the export and I do not know if I should tick a plugin in the cocoon project related to cordova. When I tried to run the game with no plugins, it did not work as well. 

Share this post


Link to post
1 minute ago, Gary said:

I have added no plugins into the construct2 game

Hi Gary,

That's not the case. You must install the plugins in Construct 2. If you add the GameCenter and InApp Plugin at cocoon, you also must do the same in Construct 2. iTunes just adds the privilegs to your app which allows it to use InApp and GameCenter. That's not associated with the plugins you use. However it's still strange that your config.xml looks the same. Did you delete the config.xml file coming from the C2 export before zipping your files?

The easiest would be if you sent me the capx file, or at least a minimalistic example where you got the blackscreen. Then I can test it on my end. You can send me private message if you don't want to share it publicly.

Regards

Andy

Share this post


Link to post

Hi Andy, everything works now :) The problem was with the bad cordova plugin job. I can run the game now. Thank you very very much. Btw yes, I did the deleting confix job like you want to do and still can see the same confix file but the game works now.

  • Like 1

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy, Terms of Use, We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. & Guidelines.