Error building Unity 5 for iOS

+1 vote

I'm using APP42 API (3.2.1) and Unity 5.0.0f4. 

When I compile with mono (2.x), it fails with following error.

Cross compilation job App42_Unity3D_SDK_3.2.1.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/Tools/OSX/mono-xcompiler-wrapper.sh --aot=full,asmonly,nodebug,static,outfile="App42_Unity3D_SDK_3.2.1.dll.s" "App42_Unity3D_SDK_3.2.1.dll"  current dir : /Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed
 result file exists: True. Timed out: False
 
stdout:
Mono Ahead of Time compiler - compiling assembly /Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed/App42_Unity3D_SDK_3.2.1.dll
Missing method UnityEngine.WWWForm::get_headers() in assembly /Users/xxx/New Unity Project
 
When I play in editor, it shows following error on the method  uploadService.UploadFileForUser().
 
Missing method UnityEngine.WWWForm::get_headers() in assembly /Users/xxx/New Unity Project
Also it fails with 
Failed running /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out "/Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed" -l none -c link -x "/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/native_link.xml" -f "/Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/LinkerDescriptors" -x "/Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/xxx/New Unity Project 15/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -d "/Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed" -a  "/Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a  "/Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a  "/Users/xxx/New Unity Project 15/Temp/StagingArea/Data/Managed/App42_Unity3D_SDK_3.2.1.dll"
 

Did I missed any configuration?  Or app42 API sdk isn't compatibility with Unity 5 (ios)? If yes, when will be compatibility with Unity 5 and 64 bit?

For android it builds without problem.

Thanks in advance,

MGs

asked Mar 13, 2015 in App42 Cloud API-BaaS by mongolgamestudio (26 points)
recategorized Apr 7, 2015 by sushil

2 Answers

0 votes
 
Best answer

Hello,

Thanks for your patience. we are releasing App42 Unity SDK 4.0 beta version which is compatible for Unity5 patch2 and above version for following build and can be downloaded fromhere.

  • Unity Web Player
  • Android
  • iOS (Mono) & iOS (IL2CPP)
  • Desktop Standalone app
  • Window Phone

Since Unity 5 still has issue with HTTPS  on iOS build, you have to point your build to use our HTTP interface instead of HTTPS as shown below. You have to just set this after App42 API initialize:

App42API.SetBaseURL ("http://ns.api.shephertz.com/cloud/");

Please see our change log for detail information about feature and bug fixes.

Thanks,

Himanshu Sharma

answered Apr 3, 2015 by hs00105 (2,005 points)
selected Apr 4, 2015 by mongolgamestudio
Thanks, Now it compiles and works.
Great to  hear that your are able to build your project. Let us know if you face any issue and thanks for your patience.

Himanshu Sharma
I tried Beta 4 and setup as you said it works perfectly in Editor above but when I run on real device. It prints out hundred  of warning like below.
Please note that, this is just a scene with some GUI elements for testing there is no 3D objects

I'm using: Unity 5.0.1p3 on MAC

--------
2015-05-08 10:13:30.092 RPG[13498:6038381] Received memory warning.
WARNING -> applicationDidReceiveMemoryWarning()
2015-05-08 10:13:34.548 RPG[13498:6038381] Received memory warning.
....
...
------
Thanks for sharing the logs with us. Could you please check is this happening after integrating App42 SDK in your project or its by default? It will help us to debug further and provide better support to you.

Thanks,
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...