unity3d ios 64bit support

0 votes
hello we had developed a game using unity3d on ios and android but now we want to give ios 64bit support to the game.
 
our unity version is unity5.0.1
app42 sdk is 3.2.2
 
still we got these errors:-
 
Error building Player: Exception: /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!
 
 
Exception: /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!
 
 
 
Failed running /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/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 "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -d "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/AppWarpUnity.dll" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/ICSharpCode.SharpZipLib.dll" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/P31RestKit.dll" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/P31RestKit 1.dll" -a  "/Volumes/Data/Wordmaster_BuldTest(4.6.3)/WordMaster/Temp/StagingArea/Data/Managed/App42_Unity3D_SDK_3.2.2.dll"
 
stdout:
Fatal error in Mono CIL Linker
System.Exception: Error processing method: 'System.Void com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW::ExecuteMultipart(System.String,System.String,System.Collections.Generic.Dictionary`2<System.String,System.String>,System.Collections.Generic.Dictionary`2<System.String,System.String>,System.Collections.Generic.Dictionary`2<System.String,System.String>,System.Collections.Generic.Dictionary`2<System.String,System.String>,System.String,System.String,com.shephertz.app42.paas.sdk.csharp.App42CallBack)' in assembly: 'App42_Unity3D_SDK_3.2.2.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Collections.Hashtable UnityEngine.WWWForm::get_headers()
 
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:192)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185)
UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136)
UnityEditorInternal.AssemblyStripper:Strip(String[], String[], String, String, String&, String&, String, String, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:121)
UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String[], String[], String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:445)
UnityEditorInternal.IL2CPPBuilder:StripAssemblies(String[], String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:433)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:273)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditor.HostView:OnGUI()
can you please help us to resolve these asap. 
Thanks.
 
asked Apr 3, 2015 in App42 Cloud API-BaaS by amit.bagada (43 points)

1 Answer

0 votes

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)
Has the HTTPS issue been resolved?
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 object

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
just ignore it. When U update Xcode. These bug are gone!
The problem now is I could not connect to App42 via 3G (my 3G connection can view youtube in HD). Everything works as expect in Wifi mode.
And here is the log via Xcode on real device. (iOS IL2CPP)

----
Setting up 1 worker threads for Enlighten.
  Thread -> id: c586000 -> priority: 1
Exception : com.shephertz.app42.paas.sdk.csharp.App42Exception: System.NullReferenceException: A null value was found where an object instance was required.
  at com.shephertz.app42.paas.sdk.csharp.storage.Query.GetType () [0x00000] in <filename unknown>:0
  at com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW+<Execute>d__6.MoveNext () [0x00000] in <filename unknown>:0
  at com.shephertz.app42.paas.sdk.csharp.storage.Query.GetType () [0x00000] in <filename unknown>:0
  at com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW+<WaitForRequest>d__3.MoveNext () [0x00000] in <filename unknown>:0
  at BetterList`1+CompareFunc[UIDrawCall].EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0
CompareFunc:EndInvoke(IAsyncResult)
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
AssemblyCSharp.UserResponse:OnException(Exception)
com.shephertz.app42.paas.sdk.csharp.storage.Query:GetType()
com.shephertz.app42.paas.sdk.csharp.connection.<Execute>d__6:MoveNext()
com.shephertz.app42.paas.sdk.csharp.storage.Query:GetType()
com.shephertz.app42.paas.sdk.csharp.connection.<WaitForRequest>d__3:MoveNext()
CompareFunc:EndInvoke(IAsyncResult)

=== ====
Please double check on that
Hi atovnevn,
Can you specify that which method of SDK you are using when getting this exception.
I just use App42 with these methods below:

userService.Authenticate (userName, password, callBack);
userService.CreateUser (userName, password, emailId, callBack);
uploadService.UploadFileForUser (...);
uploadService.GetFileByUser(fileName, username, callBack);
Thanks for sharing the details with us. Could you please enable the internal logs for the above method and share with us? It will help us to find the root cause of this issue.
To print the internal logs, put the below line of code just after the initialize method of App42 API:
App42Log.SetDebug(true);

Please share these logs with us at support@shephertz.com.

Thanks,
Himanshu Sharma
I did send you and e-mail with full Log, please double check
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
...