Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

Unable to merge Unity 5 into our iOS application

$
0
0
We have a large and complicated application and we are looking to upgrade our 3d engine to Unity 5.0. But I am having trouble integrating Unity. I been trying to follow these tutorials but constant errors keep poping up whatever I do. http://www.the-nerd.be/2014/09/08/sandbox-unity-app-in-existing-ios-app/ http://www.makethegame.net/unity/add-unity3d-to-native-ios-app-with-unity-5-and-vuforia-4-x/ http://www.markuszancolo.at/2014/05/integrating-unity-into-a-native-ios-app/ If I just add the "Libraries" and the "Classes" folders into my project, I get an odd amount errors. It gets confused with other c code in the project(really doesn't like msgpack) and tries to import the wrong files (ILCPP files). If I remove all offending code from the project I still have a list of errors with the native cstring class. > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:70:9:> No member named 'memcpy' in the global namespace; did you mean> 'wmemcpy'?> /Users/jess/Projects/GIT/CricHQ-3d/iOS-export/Classes/Native/UnityEngine.UI.cpp:3:10:> In file included from> /Users/jess/Projects/GIT/CricHQ-3d/iOS-export/Classes/Native/UnityEngine.UI.cpp:3:> /Users/jess/Projects/GIT/CricHQ-3d/iOS-export/Libraries/libil2cpp/include/codegen/il2cpp-codegen.h:8:10:> In file included from> /Users/jess/Projects/GIT/CricHQ-iPhone/../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/codegen/il2cpp-codegen.h:8: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:436:10:> In file included from> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436:> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/wchar.h:152:10:> 'wmemcpy' declared here> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:71:9:> No member named 'memmove' in the global namespace; did you mean> 'wmemmove'? /Users/jess/Projects/GIT/CricHQ-iPhone/:353:2:> In file included from :353:> /Users/jess/Projects/GIT/CricHQ-iPhone/:4:10: In file> included from :4:> /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6:10:> In file included from> /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6:> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10:> In file included from> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18:10:> In file included from> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18:> /Users/jess/Projects/GIT/CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4:10:> In file included from> /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4:> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:436:10:> In file included from> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436:> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/wchar.h:153:10:> 'wmemmove' declared here> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:72:9:> No member named 'strcpy' in the global namespace> /Users/jess/Projects/GIT/CricHQ-iPhone/:353:2: In file> included from :353:> /Users/jess/Projects/GIT/CricHQ-iPhone/:4:10: In file> included from :4:> /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6:10:> In file included from> /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6:> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10:> In file included from> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18:10:> In file included from> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18:> /Users/jess/Projects/GIT/CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4:10:> In file included from> /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4:> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:436:10:> In file included from> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436: Screenshot: ![xcode errors][1] If I instead add the unity xcode project into my project, it no longer errors and I can run my application or the unity project. However if I try run any unity code from my project I get errors in the build logs. For example this is what happens when I modify our main class to include the unity changes: > Undefined symbols for architecture armv7: >“UnityInitTrampoline()”, referenced from: > _main in main.o >“_UnityParseCommandLine”, referenced from: > _main in main.o >“_InitializeScriptingBackend”, referenced from: > _main in main.o … If I force arm64 I get: > Undefined symbols for architecture arm64: .... Screenshot: ![alt text][2] Anyone know of a solution? Any help in this matter would be great as I'm totally stuck on what I should try next. [1]: http://i.stack.imgur.com/qUW3n.png [2]: http://s7.postimg.org/5nf85xkdn/Screen_Shot_2015_06_04_at_4_57_56_pm.png

Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>