0

enter image description hereLooked at a number of codesigning issues with Xcode. I know exactly when my problem occurs and why it is occurring.

Xcode 8.3.3

Building a Cocos2dx 3.0 app

I add images from my local disk to the directory proj.ios_mac/ios then pull them into the Resources folder in the Xcode project. I then write some code to use them in making Sprites.

Suddenly Xcode fails to codesign the app and I can neither build for iPhone 5c or any of the simulators.

I remove the images from Xcode, delete them from the folder, comment out the code, and the builds without the codesign error.

Tried

$ xattr -rc 

in the directory Proj/proj.ios_mac/

No idea what the issue is.

Jack Frye
  • 583
  • 1
  • 7
  • 28
  • In terminal, Try : xattr -cr – Guru Sep 11 '17 at 17:43
  • https://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-3-3-resource-fork-finder-information/39667628#39667628 – Guru Sep 11 '17 at 17:43
  • where is the bundle in an Xcode project – Jack Frye Sep 11 '17 at 17:47
  • $ cd /Users/johnfrye/Library/Developer/Xcode/DerivedData/ETInvasion-aifpbxpnjenodbcmfazgmtbhfgtv/Build/Products/Debug-iphoneos/ $ xattr -cr then try rebuild and failed – Jack Frye Sep 11 '17 at 17:54
  • I mean give root folder. For example, your project: /Volumes/Development/Project/AngryBird, then in terminal execute, xattr -cr /Volumes/Development/Project/AngryBird – Guru Sep 11 '17 at 17:55
  • Tried that. Still failing. That's what I had meant in the original question when i did the xattr -rc. – Jack Frye Sep 11 '17 at 17:57
  • After executing, Did you Clean Xcode and Build again, You tried it on DerivedData, instead of real project folder... – Guru Sep 11 '17 at 17:58
  • I have tried it on both the directory containing the .app file as well as the project folder. I have cleaned and tried to rebuild just after having run these commands. It still will not build. – Jack Frye Sep 11 '17 at 18:08
  • 1
    post error screenshot from Xcode with console log – Guru Sep 11 '17 at 18:11
  • I have posted the screenshot of the output. – Jack Frye Sep 11 '17 at 18:15
  • yes, its exactly same problem. Try Solution 2 in this https://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-3-3-resource-fork-finder-information/39667628#39667628 – Guru Sep 11 '17 at 18:19
  • do i need to do them one by one? – Jack Frye Sep 11 '17 at 18:22
  • yeah it was solution 2 from that post. I dont know if the custom is to dock me reputation or make an answer pointing to that post... but that was the answer – Jack Frye Sep 11 '17 at 18:32
  • did you solve problem? successfully resolved code sign issue ? – Guru Sep 12 '17 at 06:22
  • yes. Should I answer the question and link it to the other answer you provided? – Jack Frye Sep 12 '17 at 13:53
  • Good to know that you solved issue. Its exactly same problem and answered already..Good to close this question :) – Guru Sep 12 '17 at 15:21

0 Answers0