- Home /
xCode build fails after upgrading to 4.5 only on automated build project.
Hi.
I got a strange problem currently with my jenkins build job. If I'm building the xCode project manually, everything is working fine, but if I let it build my build server, I get some errors like:
Users/jenkins/jenkins/JENKINS_HOME/jobs/iOS_Client/workspace/Assets/Editor SocialNetworking/FacebookManager.mm:144:21: error: cast of C pointer type 'CFStringRef' (aka 'const __CFString *') to Objective-C pointer type 'NSString *' requires a bridged cast
/Users/jenkins/jenkins/JENKINS_HOME/jobs/iOS_Client/workspace/Assets/Editor/SocialNetworking/FacebookManager.mm:145:17: error: 'autorelease' is unavailable: not available in automatic reference counting mode
If I build the xCode project manually it runs fine and nothing to complain. But the automated build seems to do something else. The command for building it is:
xcodebuild -alltargets -configuration Release build CONFIGURATION_BUILD_DIR=/Users/jenkins/jenkins/JENKINS_HOME/jobs/workspace/automatedBuild/<ProjectName>/ "CODE_SIGN_IDENTITY=<CodeSigningIdentity>"
This problem only occurs since I updated to Unity 4.5 and updated the social plugin tool (deleted before that the old file from the unity project, just to make sure it was new from the scratch).
Anyone has a hint for me? Thx
Answer by pahe · Jun 10, 2014 at 08:06 AM
Ok, found the solution in the forum: http://forum.unity3d.com/threads/command-line-xcodebuild-not-working-anymore-since-unity-4-5-update.250003/
Since Unity 4.5 the targets name has changed, so changing from -alltargets to -Unity-iPhone has solved the problem.
Your answer
Follow this Question
Related Questions
IL2CPP stripping help. 0 Answers
Apple Mach-O Linker Error 4 Answers
How to Fix linker command failed with exit code 1 (use -v to see invocation)? 0 Answers
Check if mopub banner ad is on screen 0 Answers