Ios 链接器错误-CreateMainApp\uuuu预期\uu正好\uu一个\uVR\uMain\uuuApp\uuu语句\uuuuuu与Cardward SDK

Ios 链接器错误-CreateMainApp\uuuu预期\uu正好\uu一个\uVR\uMain\uuuApp\uuu语句\uuuuuu与Cardward SDK,ios,linker,google-cardboard,soomla,Ios,Linker,Google Cardboard,Soomla,我正在开发一个谷歌硬纸板应用程序,并在iOS中构建良好。但将Soomla添加到项目会导致链接器错误: Ld /Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Realit

我正在开发一个谷歌硬纸板应用程序,并在iOS中构建良好。但将Soomla添加到项目会导致链接器错误:

Ld /Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/RealiteerCore normal armv7
cd /Users/foundway/GitHub/RealiteerCore/Build/RealiteerCoreIOS
export IPHONEOS_DEPLOYMENT_TARGET=6.0
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++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -L/Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Products/Release-iphoneos -L/Users/foundway/GitHub/RealiteerCore/Build/RealiteerCoreIOS -L/Users/foundway/GitHub/RealiteerCore/Build/RealiteerCoreIOS/Libraries -L/Applications/Unity/Unity.app/Contents/PlaybackEngines/iOSSupport/Trampoline/Libraries -L/Users/foundway/GitHub/RealiteerCore/Assets/Plugins/iOS -F/Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Products/Release-iphoneos -filelist /Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/RealiteerCore.LinkFileList -Xlinker -map -Xlinker /Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/RealiteerCore-LinkMap-normal-armv7.txt -dead_strip -lc++ -weak_framework CoreMotion -weak-lSystem -ObjC -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework Security -framework CoreText -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -liPhone-lib-il2cpp -liontext -lVuforia -lcardboard -lionimagecompression -lionimage -lremote_assets -lport -levent_internal -lQuantumCore -lbase -lNimbusCore -lrecorder -liongfx -lprotos_lib -lsoftware -lionwebp -lcardboard_protos -lionportgfx -lionstblib -lGoogleKitHUD -lionmath -lionlodepnglib -liongfxutils -lsensors -ltype -lapi -lprotobuf -lionfreetype2 -lionremote -lNimbusAttributedLabel -llogging -lProtocolBuffers -lUnityiOSProfile -lplatform -lSoomlaIOSCore -lvr -lionport -lcomposite -ldatatypes -ldevice -lNimbusModels -levent -lionanalytics -lgflags -lQCARUnityPlayer -lionbase -lionjsoncpp -lionzlib -ldevice_internal -lionmongoose -lGoogleKitCore -lionopenctm -lvrunity -lSoomlaiOSProfile -lUnitySoomlaiOSCore -llogging_protos -lionprofile -lsqlite3.0 -Xlinker -dependency_info -Xlinker /Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/RealiteerCore_dependency_info.dat -o /Users/foundway/Library/Developer/Xcode/DerivedData/Unity-iPhone-grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/RealiteerCore

Undefined symbols for architecture armv7:
  "gvr::CreateMainApp__EXPECTED_EXACTLY_ONE_VR_MAIN_APP_STATEMENT__(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&)", referenced from:
      l001 in libplatform.a(vr_ios.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld/Users/foundway/Library/Developer/Xcode/DerivedData/Unity iPhone grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.Build/Release-iphoneos/Unity-iPhone.Build/Objects-normal/armv7/RealiteerCore normal armv7
cd/Users/foundway/GitHub/RealiteerCore/Build/RealiteerCoreIOS
导出IPHONEOS_部署_目标=6.0
export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/sbin:/sbin”
/Applications/Xcode.app/Contents/Developer/toolschains/xcodefault.xtoolschain/usr/bin/clang++-arch-armv7-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk-L/Users/foundway/Library/Developer/Xcode/DerivedData/Unity iPhone grxtfxryysieueuyeovxlmgxu/Build/Products/Release iPhoneOS-L/Users/foundway/GitHub/RealiteerCore/Build/RealiteerCoreIOS-L/Users/foundway/GitHub/RealiteerCore/Build/RealiteerCore/Libraries-L/Applications/Unity/Unity.app/Contents/PlaybackEngines/iOSSupport/Trampoline/Libraries-L/Users/foundway/GitHub/RealiteerCore/Assets/Plugins/iOS-F/Users/foundway/Library/Developer/Xcode/DerivedData/Unity iPhone grxtfxrygreysieuyeovxlhlmgxu/Build/Products/Release iphoneos-filelist/Users/foundway/Library/Developer/Xcode/DerivedData/Unity iPhone grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.Build/Release-iphoneos/Unity-iPhone.Build/Objects-normal/armv7/realiteecore.LinkFileList-Xlinker-map-Xlinker/Users/foundway/Library/Developer/Xcode/DerivedData/Unity iPhone grxtfxrygreysieuyeovxlhlmgxu/Build/Release-iphoneos/Unity-iPhone.Build/RealiteerCore-LinkMap-normal-armv7.txt-死区-lc++-弱框架核心运动-弱lSystem-ObjC-stdlib=libc++-fobjc-arc-fobjc链接运行时-miphoneos版本min=6.0-框架安全性-框架CORTEXTEX-框架基础-框架UIKET-Framework OpenGLE框架FrameZrase-框架OpenAL—LICONV .2框架音频工具箱-框架CFNET-框架MIDAPEPLACE框架-框架-配置-弱X框架IAD框架COREMEDIA-框架CORVEDIO弱框架AVFoundation-框架核心图形-弱框架核心运动-liPhone-lib-il2cpp-liontext-lVuforia-lcardboard-lionimagecompression-lionimage-lremote\u assets-lport-levent\u internal-lQuantumCore-lbase-lNimbusCore-lrecorder-liongfx-lprotos\u lib-lsoftware-lionwebp-lcardboard\u protos-lionportgfx-lionstbliblb-lgookithud-lionmath-LionDeponglib-LionFXutils-lsensors-ltype-lapi-lprotobuf-lionfreetype2-lionremote-LnimbusAttributed Label-Llogg-lProtocolBuffers-lUnityiOSProfile-lplatform-lSoomlaIOSCore-lvr-lionport-lcomposite-ldatatypes-ldevice-lNimbusModels-levent-lionanalytics-Lflags-lQCARUnityPlayer-lionbase-Lionjson CPP-lionzlib-ldevice_internal-lionmongose-lGoogleKitCore-lionopenctm-lvrunity-lSoomlaiOSProfile-lUnitySoomlaiOSCore-llogging_protos-lionprofile-lsqlite3.0-Xlinker-dependency_info-Xlinker/Users/foundway/Library/Developer/Xcode/DerivedData/Unity iPhone grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.Build/Release-iphoneos/Unity-iPhone.Build/Objects-normal/armv7/RealiteerCore\u dependency\u info.dat-o/Users/foundway/Library/Developer/Xcode/DerivedData/Unity iPhone grxtfxrygreysieuyeovxlhlmgxu/Build/Intermediates/Unity-iPhone.Build/Release-iphoneos/Unity-iPhone.Build/Objects-normal/armv7/RealiteerCore
架构armv7的未定义符号:
“gvr::CreateMainApp\uuuu预期的\uu精确的\uu一个\uu VR\uu主\uu应用程序\uuuu语句(标准::\uuuuuu 1::向量常量&)”,引用自:
libplatform.a(vr_ios.o)中的l001
ld:未找到架构armv7的符号
叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我刚刚将Soomla添加到我的Cardward应用程序中,但看起来Soomla和Google Cardward正在争夺主应用程序(libplatform.a来自Google Cardward)。我认为谷歌纸板应该成为主要的应用程序

所以,我想知道是否有办法让其他插件不为主应用程序而战


它也可能是别的东西。。。以上仅是我的理论。

我在Soomla和硬纸板SDK上遇到了同样的问题,我相信你的理论是正确的,Soomla希望成为主要应用程序,但为什么它需要成为呢?附近有工作吗?帮我们快点

我尝试过一次剥离一个SDK,它肯定与soomla相关,或者可能与FB SDK相关(因为soomla也控制该功能)

架构arm64的符号:
“gvr::CreateMainApp\uuuuu预期的\uu完全是一个\uU VR\uU MAIN\u APP\u语句\uuuuuuuuu(std::\uuuuu 1::vector,std::\uuu 1::allocator,std:\uuu 1::allocator>>const&”),引用自:

发生这种情况是因为Xcode build标志-ObjC改变了.a文件的链接方式。硬纸板中有一些代码。硬纸板SDK本身不需要(或不想要)的文件(例如CreateMainApp)


可以通过从Xcode中的链接标志中删除-ObjC标志来修复此问题。注意:这可能会导致Soomla不链接,但希望他们只包括“以防万一”。因此,请先尝试一下,如果仍然失败,请在此处发表评论。

FYI:Soomla支持网站的原始帖子链接:感谢smd的回复,我们决定删除Soomla和Facebook SDK,并使用URL链接启动该应用程序,以供喜爱和共享。如果我们再次尝试实现soomla,我将尝试删除标志-ObjC。再次感谢!