2015-06-03 8 views
13

Wir haben eine große und komplizierte Anwendung und wir möchten unsere 3D-Engine auf Unity 5.0 aufrüsten. Aber ich habe Schwierigkeiten, Unity zu integrieren.Unity 5 kann nicht in unsere iOS-Anwendung integriert werden.

Ich habe versucht, diese Tutorials zu folgen, aber konstante Fehler tauchen immer auf, was auch immer ich mache. 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/

Wenn ich die „Bibliotheken“ nur hinzufügen und die „Klassen“ Ordner in meinem Projekt, erhalte ich eine ungerade Fehler Menge. Es wird mit anderen C-Code im Projekt verwechselt (wirklich nicht wie msgpack) und versucht, die falschen Dateien (ILCPP-Dateien) zu importieren. Wenn ich den gesamten fehlerhaften Code aus dem Projekt entferne, habe ich immer noch eine Fehlerliste mit der nativen cstring-Klasse.

CompileC /Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Intermediates/CricHQ.build/Debug-iphoneos/CricHQ.build/Objects-normal/armv7/main-5D1DD4E92C87F57A.o Classes/Other/main.mm normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Users/jess/Projects/GIT/CricHQ-iPhone export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++11 -stdlib=libc++ -fobjc-arc -fmodules -fmodules-cache-path=/Users/jess/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/jess/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Werror=incompatible-pointer-types -Wmissing-field-initializers -Wmissing-prototypes -Wno-return-type -Wimplicit-atomic-properties -Wno-receiver-is-weak -Warc-repeated-use-of-weak -Wexplicit-ownership-type -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wexit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wint-conversion -Wno-bool-conversion -Wenum-conversion -Wassign-enum -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wstrict-selector-match -Wno-undeclared-selector -Wdeprecated-implementations -Wc++11-extensions -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -I/Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Intermediates/CricHQ.build/Debug-iphoneos/CricHQ.build/CricHQ\ Next.hmap -I/Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/jess/Projects/GIT/CricHQ-iPhone/Libraries -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/libxml2 -I/Users/jess/Projects/GIT/CricHQ-iPhone/../CricHQ-3d/iOS-export/Classes -I/Users/jess/Projects/GIT/CricHQ-iPhone/../CricHQ-3d/iOS-export/Libraries/bdwgc/include -I/Users/jess/Projects/GIT/CricHQ-iPhone/../CricHQ-3d/iOS-export/Libraries/libil2cpp/include -I/Users/jess/Projects/GIT/CricHQ-iPhone/../CricHQ-3d/iOS-export/Classes/Native -I/Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/CricEngine/source -I/Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Intermediates/CricHQ.build/Debug-iphoneos/CricHQ.build/DerivedSources/armv7 -I/Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Intermediates/CricHQ.build/Debug-iphoneos/CricHQ.build/DerivedSources -F/Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Products/Debug-iphoneos -F/Users/jess/Projects/GIT/CricHQ-iPhone -mno-thumb -DINIT_SCRIPTING_BACKEND=1 -include /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch -MMD -MT dependencies -MF /Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Intermediates/CricHQ.build/Debug-iphoneos/CricHQ.build/Objects-normal/armv7/main-5D1DD4E92C87F57A.d --serialize-diagnostics /Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Intermediates/CricHQ.build/Debug-iphoneos/CricHQ.build/Objects-normal/armv7/main-5D1DD4E92C87F57A.dia -c /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/main.mm -o /Users/jess/Library/Developer/Xcode/DerivedData/CricHQ-bsrxghpplcwahnadlgmwxmzwbxff/Build/Intermediates/CricHQ.build/Debug-iphoneos/CricHQ.build/Objects-normal/armv7/main-5D1DD4E92C87F57A.o

In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:70:9: error: no member named 'memcpy' in the global namespace; did you mean 'wmemcpy'? using ::memcpy; ~~^ In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:435: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/wchar.h:152:10: note: 'wmemcpy' declared here wchar_t *wmemcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t); ^In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:71:9: error: no member named 'memmove' in the global namespace; did you mean 'wmemmove'? using ::memmove; ~~^ In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:435: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/wchar.h:153:10: note: 'wmemmove' declared here wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t); ^In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:72:9: error: no member named 'strcpy' in the global namespace using ::strcpy; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:73:9: error: no member named 'strncpy' in the global namespace using ::strncpy; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:74:9: error: no member named 'strcat' in the global namespace using ::strcat; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:75:9: error: no member named 'strncat' in the global namespace using ::strncat; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:76:9: error: no member named 'memcmp' in the global namespace; did you mean 'wmemcmp'? using ::memcmp; ~~^ In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:435: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/wchar.h:151:5: note: 'wmemcmp' declared here int wmemcmp(const wchar_t *, const wchar_t *, size_t); ^In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:77:9: error: no member named 'strcmp' in the global namespace using ::strcmp; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:78:9: error: no member named 'strncmp' in the global namespace using ::strncmp; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:79:9: error: no member named 'strcoll' in the global namespace; did you mean 'strtoll'? using ::strcoll; ~~^ In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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:13: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/assert.h:44: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/stdlib.h:169:3: note: 'strtoll' declared here strtoll(const char *, char **, int); ^In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:80:9: error: no member named 'strxfrm' in the global namespace using ::strxfrm; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:82:9: error: no member named 'memchr' in the global namespace; did you mean 'wmemchr'? using ::memchr; ~~^ In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:435: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/wchar.h:150:10: note: 'wmemchr' declared here wchar_t *wmemchr(const wchar_t , wchar_t, size_t); ^In file included from :353: In file included from :4: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Classes/Other/CricHQ_Prefix.pch:6: 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: 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: In file included from /Users/jess/Projects/GIT/CricHQ-iPhone/Libraries/../../CricHQ-3d/iOS-export/Libraries/libil2cpp/include/os/Locale.h:4: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:84:9: error: no member named 'strchr' in the global namespace using ::strchr; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:86:9: error: no member named 'strcspn' in the global namespace using ::strcspn; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:88:9: error: no member named 'strpbrk' in the global namespace using ::strpbrk; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:90:9: error: no member named 'strrchr' in the global namespace using ::strrchr; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:92:9: error: no member named 'strspn' in the global namespace using ::strspn; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:94:9: error: no member named 'strstr' in the global namespace using ::strstr; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:98:87: error: no member named 'strchr' in the global namespace; did you mean simply 'strchr'? inline _LIBCPP_INLINE_VISIBILITY char strchr( char* __s, int __c) {return ::strchr(__s, __c);} ^~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:98:46: note: 'strchr' declared here inline _LIBCPP_INLINE_VISIBILITY
char* strchr( char* __s, int __c) {return ::strchr(__s, __c);}

Screenshot: xcode errors

Wer weiß eine Lösung? Jede Hilfe in dieser Angelegenheit wäre großartig, da ich total auf dem feststecke, was ich als nächstes versuchen sollte.

Bearbeiten: Ein einfaches Projekt hat funktioniert, so dass ein Anfang ist. Klingt wie eine der Bibliotheken vielleicht interferiert. Die Codebasis ist groß, daher muss das Problem verringert werden.

Bearbeiten 2: Auf Unity 5.1 aktualisiert, xcode 7 Beta, sauber, löschte den Ordner DerivedData und noch keine Änderung. Sobald ich fügte hinzu: „-ferror-limit = 1000“ dann sah ich 999+ Fehler statt 30.

Häufige Fehler:

„Erklärung Konflikte mit Ziel der Erklärung bereits in ihrem Umfang mit“.

"Call to 'X' ist mehrdeutig" (cos, exp, ceil)

(Foundation, Darwin) "kann nicht Modul 'X' bauen"

"Kein Mitglied namens‚X" in Namensraum "(memset, memcpy, memmove)

"Verwendung von Schwarz Identifikator 'x'"(strdup)

" Expected ';' nach Top-Level-declarator“

bearbeiten 3: löse ich die Fehler, indem Sie‚Always Suche Benutzerpfade‘auf‚Nein‘in den XCode Projekteinstellungen

Aber ich bin ein paar andere Fragen. .

Unity CPU wird immer noch mit, wenn ich es unterbrechen. gibt es das überhaupt zu lösen? ich Unity „applicationDidBecomeActive“ Methode nenne. ich habe versucht, auch nur „UnityPause“.

Aufruf Unity „GetAppController() aufgerufen "In meinem eigenen Code verursacht dies Fehler:

Undefined symbols for architecture armv7:

"_GetAppController", referenced from:

-[Test3d viewDidDisappear:] in Test3d.o ld: symbol(s) not found for architecture armv7

+0

Wenn die Bilder zum Lesen zu klein sind, klicken Sie mit der rechten Maustaste darauf und öffnen Sie sie in einem neuen Tab. Oder Browserzoom. – Zammbi

+2

riecht nach Unity3D Plattformproblem. Hast du das in Unity3D veröffentlicht? – Aizen

+0

Ja habe ich. Nicht viel Hilfe von überall bekommen. – Zammbi

Antwort

1

Die meisten meiner Antworten sind in der Frage. Die Kernlösung war, in den XCode-Projekteinstellungen "Immer Benutzerpfade suchen" auf "Nein" zu stellen.

Wie für die letzte Bearbeitung glaube ich, dass sie Fehler sind. Ich benutze nicht GetAppController, stattdessen habe ich meine eigene Methode. Ich habe das CPU-Problem gemeldet, es ist kein großes Problem, da es nur 3% auf Handys und iPads ist.

0

Ich habe dieses Problem auch vor kurzem versucht, mein Unity 5-Projekt in ein bestehendes iOS-Projekt zu integrieren. Wie ich von Ihrem Unity Projekt in Ihr iOS-Projekt

1) Drag Class und Libraries Dateien zu integrieren verwaltet. Das gleiche wie das Tutorial von Nerd. Heben Sie die Markierung von Kopierelementen auf, und wählen Sie Gruppenradio erstellen aus.

2) Aktualisieren Sie Ihre Header Search Path und Library Search Path unter Build Settings. Die Ordner sollten auf Ihren Projektordner Unity zeigen.

Header-Suchpfad -> Einheit der Klassen Ordner

Library Search Path -> Einheit der Library-Ordner

Dieser Teil ist wirklich wichtig, es hat mich diese Fehler zu lösen.

3) Denken Sie daran, unter Build Phases ein Laufskript zu erstellen und sicherzustellen, dass das Skript auf den korrekten Pfad im Unity-Ordner Data zeigt.

rm -rf "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Data" 
cp -Rf "$PROJECT_DIR/../CHANGE THIS TO YOU PATH/Data" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Data" 

4) Vergleichen Sie die Build Settings von der Projekt Einheit und Ihrem aktuellen iOS-Projekt. Stellen Sie sicher, dass Sie den richtigen C++ - und C-Compiler auswählen. Ihr iOS-Projekt sollte mit dem von Unity übereinstimmen. Auch die Linker Flag müssen in der richtigen Reihenfolge sein.

-weak_framework 
CoreMotion 
-weak-lSystem 

Das ist alles, was ich mein iOS-Projekt kompiliert mit dem Unity-Projekt Ich habe getan zu machen. Ich hoffe, es hilft.

+0

Ja, das war, was diese Tutorials im Grunde gesagt haben. Ich habe dieses Problem gelöst. Ich habe eine Bearbeitung hinzugefügt, vielleicht hast du es nicht bemerkt, ich habe um Hilfe zu meinen neuen Ausgaben gebeten, da diese ursprünglich nie beantwortet wurde. – Zammbi

+0

Hallo, ich versuche das Gleiche zu tun. Ich bekomme immer noch den Cstring-Fehler. Ich folge auch dem Nerd-Tutorial. Aber ich benutze Einheit 4.6. Gibt es Unterschiede zwischen Einheit 4.6 und 5 in dieser Angelegenheit? Danke – m0j1

+0

Sie möchten vielleicht das Projekt von Unity exportieren und es versuchen, es aufzubauen und es direkt vom exportierten Projekt laufen zu lassen, um zu sehen, ob es auf Ihrem Gerät funktioniert. Wenn dies der Fall ist, sollte die Kompilierung kein Problem darstellen. Was Sie wirklich tun müssen, ist, die Build-Einstellungen des exportierten iPhone/iPad-Projekts mit dem Projekt zu vergleichen, mit dem Sie zusammenführen möchten. Der Rest der Schritte ist der gleiche wie oben beschrieben. – Seeya

2

ich nicht hier genug Ruf zu kommentieren, so schreibe ich es als Antwort: Nach 3 Edits ich bin nicht sicher, welche Probleme noch übrig sind ...

GetAppController ist eine Inline-Funktion in UnityAppController.h Wenn es nicht mit Ihrem Projekt verknüpft ist, haben Sie wahrscheinlich die Datei nicht eingeschlossen (sondern GetAppController() stattdessen selbst irgendwo deklariert).

Die anderen Fehler sieht aus, als ob Sie Konflikte mit den grundlegenden c-libs haben. Verwendet Ihr anderer Code die C++ Std-Lib? und wenn ja, welche? Welche ist in Ihren BuildSettings unter "C++ Standard Library" angegeben? Es sollte libc sein ++

Die "Lösung", um "Immer Benutzerpfade durchsuchen" zu "Nein" zu wechseln, klingt noch mehr wie ein Problem mit anderen eingeschlossenen Projekten.

+0

"Nach 3 Edits bin ich mir nicht sicher, welche Probleme noch übrig sind" Ich hätte die anderen Änderungen entfernt, aber ich habe sie behalten, damit auch andere ihre Probleme lösen können. Ich hatte auch ein Kopfgeld, also wollte ich es nicht verschwenden, indem ich eine neue Ausgabe erstelle. Ich kann jede Methode in UnityAppController.h aber "GetAppController" aufrufen. Ich könnte die gleiche Methode auf meiner Seite für eine Arbeit neu erstellen. "Es sollte libC++ sein" Es ist. "klingt noch mehr wie ein Problem mit anderen eingeschlossenen Projekten" Vielleicht. Ich muss jetzt erstmal damit arbeiten. – Zammbi

Verwandte Themen