Problem uploading a signed MAC PC game to iTunes Connect (developed with unity)

Hello everyone,


I am currently trying to upload a MAC PC game to iTunes Connect but I keep getting the following error message via Email from Apple right after I have uploaded the pkg file: (Btw. There are no other error messages coming from the Application Loader other than "The resulting API file is too larger..."


----------------


Dear developer,



We have discovered one or more issues with your recent delivery for "Gamename". To process your delivery, the following issues must be corrected:


Invalid Signature - The main app bundle gamename at path gamename.app has following signing error(s): --


prepared:/Volumes/data01/app_data/dstr/mz_6515889277427173166dir/mz_8102933281085003109dir/com.publishername.gamename.pkg/Payload/Gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib --

validated:/Volumes/data01/app_data/dstr/mz_6515889277427173166dir/mz_8102933281085003109dir/com.publishername.gamename.pkg/Payload/Gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib --


prepared:/Volumes/data01/app_data/dstr/mz_6515889277427173166dir/mz_8102933281085003109dir/com.publishername.gamename.pkg/Payload/Gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib --

validated:/Volumes/data01/app_data/dstr/mz_6515889277427173166dir/mz_8102933281085003109dir/com.publishername.gamename.pkg/Payload/Gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib


/Volumes/data01/app_data/dstr/mz_6515889277427173166dir/mz_8102933281085003109dir/com.publishername.gamename.pkg/Payload/Gamename.app: code object is not signed at all In subcomponent:

/Volumes/data01/app_data/dstr/mz_6515889277427173166dir/mz_8102933281085003109dir/com.publishername.gamename.pkg/Payload/Gamename.app/Contents/Text.data .


Specifically, codesign generated the following error:


com.publishername.gamename.pkg/Payload/Gamename.app: code object is not signed at all

In subcomponent: com.publishername.gamename.pkg/Payload/Gamename.app/Contents/Text.data


---------


Usually I can easily sign the app using the terminal command:

"/usr/bin/codesign --deep --en "Entitlements.plist" -s "3rd Party Mac Developer Application: Publishername" -f "Gamename.app"


This however did not worked out with our latest game, the reason is that we are using separte loca files but I have no idea why this is such a big deal.

Apple tells me that those specific "Text.data" files which contain the localisation of the game (We have a total of 5) werent signed at all.


It looks like the "deep" sign command didnt worked out...


So I decided to sign those files separately using the terminal command:

$ codesign -f -v -s "3rd Party Mac Developer Application: Publishername" "/Users/user/gamename.app/Contents/text.data"


According to a very helpful posting in the unity forum I also had to "deep" sign the complete project again after I had single signed every "text.data" file.

My first attempt to separately sing the ".data" files after the deep sign command didnt worked out.


To verify that everything was signed I then used the terminal command:

codesign --verify --verbose=4 gamename.app


And I got the following message:


prepared:/Applications/gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib

--validated:/Applications/gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib

--prepared:/Applications/gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib

--validated:/Applications/gamename.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib

--prepared:/Applications/gamename.app/Contents/Text.data

--validated:/Applications/gamename.app/Contents/Text.data

--prepared:/Applications/gamename.app/Contents/Text_French.data

--validated:/Applications/gamename.app/Contents/Text_French.data

--prepared:/Applications/gamename.app/Contents/Text_German.data

--validated:/Applications/gamename.app/Contents/Text_German.data

--prepared:/Applications/gamename.app/Contents/Text_Russian.data

--validated:/Applications/gamename.app/Contents/Text_Russian.data

--prepared:/Applications/gamename.app/Contents/Voice.data

--validated:/Applications/gamename.app/Contents/Voice.data

gamename.app: valid on disk

gamename.app: satisfies its Designated Requirement



As you can see everything looks good and Apple shouldnt find anything "not signed" within the package I sent them.

And eventhough we password protected the .data files (to prevent alterations by the users) we still got a "validated"


But I still get this "not signed" error message from Apple 😟


Does anyone here has an idea what could have gone wrong?


I am kind of lost and after the 5th attempt signing and resigning everything I am running out of options.


I am currently thinking of starting with a fresh build (one that wasnt signed before)



NOTE:

I have changed the game name and our publisher name (in case you are wondering)




Thanks alot everyone and feel free to ask me for additional info on this case.



Best,



Julian

Hi Julian,


How did you make the .pkg file?

Which process,tool or guide you use?


Cheers

Problem uploading a signed MAC PC game to iTunes Connect (developed with unity)
 
 
Q