2017-01-04 14 views
1

FirebaseMessaging.unityパッケージを使用して、UnityプロジェクトにFirebaseを追加しました。ユニファイドファイアウォールでXCodeでリンカエラーが発生する

私が構築し、Androidのために実行しているとき、それは動作しますが、私はiOS用構築しようとしていますとき、私はXcodeで次のエラーを取得:

Ld /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos/one4freeapp.app/one4freeapp normal armv7 

    cd /Users/one4freedk/Desktop/One4Free/One4Free/iosbuild 

    export IPHONEOS_DEPLOYMENT_TARGET=7.0 

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneOS10.2.sdk -L/Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos -L/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild -L/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild/Libraries -F/Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos -F/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild/Frameworks/FacebookSDK/Plugins/iOS -F/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild/Frameworks -filelist /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/one4freeapp.LinkFileList -Xlinker -map -Xlinker /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/one4freeapp-LinkMap-normal-armv7.txt -miphoneos-version-min=7.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/one4freeapp_lto.o -Xlinker -no_deduplicate -fembed-bitcode-marker -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -ObjC -lc++ -lsqlite3 -lz -licucore -lc++ -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -framework Bolts -framework FBSDKShareKit -framework FBSDKCoreKit -framework FBSDKLoginKit -weak_framework Metal -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework FirebaseMessaging -framework GoogleInterchangeUtilities -framework GoogleSymbolUtilities -framework StoreKit -framework AddressBook -Xlinker -dependency_info -Xlinker /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/one4freeapp_dependency_info.dat -o /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos/one4freeapp.app/one4freeapp 



Undefined symbols for architecture armv7: 

    "_SWIGRegisterExceptionCallbacksArgument_FirebaseMessaging", referenced from: 

     _SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_FirebaseMessaging_m2946342211 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_FirebaseMessaging_m2946342211) 

    "_SWIGRegisterStringCallback_FirebaseMessaging", referenced from: 

     _SWIGStringHelper_SWIGRegisterStringCallback_FirebaseMessaging_m1829604336 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _SWIGStringHelper_SWIGRegisterStringCallback_FirebaseMessaging_m1829604336) 

    "_Firebase_Messaging_SendPendingEvents", referenced from: 

     _FirebaseMessagingPINVOKE_Firebase_Messaging_SendPendingEvents_m696476573 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_SendPendingEvents_m696476573) 

    "_Firebase_Messaging_SetListenerCallbacksEnabled", referenced from: 

     _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacksEnabled_m633290538 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacksEnabled_m633290538) 

    "_Firebase_Messaging_SetListenerCallbacks", referenced from: 

     _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacks_m2687428259 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacks_m2687428259, _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacksEnabled_m633290538) 

    "_Firebase_Messaging_FirebaseMessage_From_get", referenced from: 

     _FirebaseMessagingPINVOKE_Firebase_Messaging_FirebaseMessage_From_get_m3347431359 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_FirebaseMessage_From_get_m3347431359) 

    "_Firebase_Messaging_delete_FirebaseMessage", referenced from: 

     _FirebaseMessagingPINVOKE_Firebase_Messaging_delete_FirebaseMessage_m1658331736 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_delete_FirebaseMessage_m1658331736) 

    "_SWIGRegisterExceptionCallbacks_FirebaseMessaging", referenced from: 

     _SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_FirebaseMessaging_m2350026019 in Bulk_Firebase.Messaging_0.o 

    (maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_FirebaseMessaging_m2350026019) 

    "_Firebase_App_FirebaseApp_CreateInternal__SWIG_0", referenced from: 

     _AppUtilPINVOKE_Firebase_App_FirebaseApp_CreateInternal__SWIG_0_m2787922779 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_FirebaseApp_CreateInternal__SWIG_0_m2787922779) 

    "_SWIGRegisterExceptionCallbacksArgument_AppUtil", referenced from: 

     _SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_AppUtil_m386473544 in Bulk_Firebase.App_0.o 

    (maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_AppUtil_m386473544) 

    "_Firebase_App_FirebaseApp_Name_get", referenced from: 

     _AppUtilPINVOKE_Firebase_App_FirebaseApp_Name_get_m2545680430 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_FirebaseApp_Name_get_m2545680430) 

    "_Firebase_App_SetLogFunction", referenced from: 

     _AppUtilPINVOKE_Firebase_App_SetLogFunction_m3733654825 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_SetLogFunction_m3733654825) 

    "_SWIGRegisterStringCallback_AppUtil", referenced from: 

     _SWIGStringHelper_SWIGRegisterStringCallback_AppUtil_m4196108411 in Bulk_Firebase.App_0.o 

    (maybe you meant: _SWIGStringHelper_SWIGRegisterStringCallback_AppUtil_m4196108411) 

    "_Firebase_App_SetEnabledAllAppCallbacks", referenced from: 

     _AppUtilPINVOKE_Firebase_App_SetEnabledAllAppCallbacks_m3339389901 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_SetEnabledAllAppCallbacks_m3339389901) 

    "_Firebase_App_delete_FirebaseApp", referenced from: 

     _AppUtilPINVOKE_Firebase_App_delete_FirebaseApp_m1137114670 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_delete_FirebaseApp_m1137114670) 

    "_Firebase_App_FirebaseApp_DefaultName_get", referenced from: 

     _AppUtilPINVOKE_Firebase_App_FirebaseApp_DefaultName_get_m4097276820 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_FirebaseApp_DefaultName_get_m4097276820) 

    "_Firebase_App_AppEnableLogCallback", referenced from: 

     _AppUtilPINVOKE_Firebase_App_AppEnableLogCallback_m3057939313 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_AppEnableLogCallback_m3057939313) 

    "_SWIGRegisterExceptionCallbacks_AppUtil", referenced from: 

     _SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_AppUtil_m1809271624 in Bulk_Firebase.App_0.o 

    (maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_AppUtil_m1809271624) 

    "_Firebase_App_PollCallbacks", referenced from: 

     _AppUtilPINVOKE_Firebase_App_PollCallbacks_m784944262 in Bulk_Firebase.App_0.o 

    (maybe you meant: _AppUtilPINVOKE_Firebase_App_PollCallbacks_m784944262) 

ld: symbol(s) not found for architecture armv7 

clang: error: linker command failed with exit code 1 (use -v to see invocation) 

を、私は解決策を探したが、持っていないしていますこれまでに何かが見つかりました。私はBitCodeを無効にしようとしましたが、1つのアーキテクチャのためだけにビルドし、リンカーフラグを編集し、ライブラリ検索パスをチェックしましたが、運がなかった。

現在のところ、このエラーにより、私のプロジェクトをiOS用にビルドできなくなります。

私はユニティ5.5.0f3、XCodeの8.2および1.1.0 Firebase

答えて

1

私はちょうど問題の問題が何かを考え出しました。私の現在のセットアップは、Windowsマシン上でプロジェクトを処理してから、Macを使ってビルドすることです。私が使用しているバージョンコントロールソフトウェア(TortoiseSVN)は自動的に ".a"ファイルを含んでいないことがわかり、libApp.aとlibMessaging.aがMacに転送されないという結果になった。

0

どうやら、あなたが不足しているFirebaseライブラリを実行しています。これはxcodeプロジェクトのために1つにエクスポートされません。プラグインのインポート設定を行っているかどうかを確認し、iosプラットフォームも選択してください。 設定に関する詳細はこちらhttps://docs.unity3d.com/Manual/PluginInspector.html

それ以外の場合は、プラグインの開発者サイトを検索したり、サポートを書いたりします。

+0

私はちょうど2倍にチェックされ、iOSで使用されているプラ​​グインのプラグインのインポート設定が正しく設定されています。私はFirebaseのサポートにも連絡していますので、私はちょうど解決策をどこかに表示するのを待っています:) – Markram

+0

いいね、このスレッドはどんな結果でも更新してください。どうも – zhekazheka

0

私は問題が展開ターゲットかもしれないと思います。 iosをビルドしようとする前に、それをios 9.0に設定してみてください。

これはおそらく8.0でも動作するはずですが、それ以前は思っていません。

0

私はこの問題を抱えており、それを通過したようです。

初めてビルドを実行したときにCocoaPodがインストールされていませんでした。これは静かに構築不可能なxcodeプロジェクトにつながります。

CocoaPodsをインストールし、xcodeプロジェクトを削除してもう一度ビルドします。

幸運を祈る!

関連する問題