NIFCLOUD-mbaas / UserCommunity

ニフクラ mobile backend ユーザーコミュニティ
https://mbaas.nifcloud.com/
81 stars 18 forks source link

unityからxcodeでのビルドが通らない件 #843

Open overlineJapan opened 6 years ago

overlineJapan commented 6 years ago

現在の環境 Unity 2017.3.0f NCMB 3.0

http://mb.cloud.nifty.com/doc/current/introduction/quickstart_unity.html#/Unity/ 上記のサンプルプログラムを実行した結果、 Unityでのビルドは通り、データストアに新しいレコード登録はできていますが、 xcodeでiosに書き出すと弾かれます。

解決策としてやったことは、 NCMBのライブラリーをフォルダごとプロジェクトに追加し、AppDelegateListner.mmにインクルードしました。 その結果、下記のエラーが出ます。

ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/overline/Desktop/MATHFALLS0205/MATHFALLSIP/Libraries/libiPhone-lib.a(unwind_test_arm64.o) ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/overline/Desktop/MATHFALLS0205/MATHFALLSIP/Libraries/libiPhone-lib.a(unwind_test_arm64.o) Undefined symbols for architecture arm64: "_registerNotificationWithLocation", referenced from: _NCMBPush_registerNotificationWithLocation_m840203791 in Bulk_Assembly-CSharp_1.o _NCMBPush_RegisterWithLocation_m363552737 in Bulk_Assembly-CSharp_1.o (maybe you meant: _NCMBPush_registerNotificationWithLocation_m840203791) "_registerNotification", referenced from: _NCMBPush_registerNotification_m143506433 in Bulk_Assembly-CSharp_1.o _NCMBPush_Register_m3939385584 in Bulk_Assembly-CSharp_1.o (maybe you meant: _NCMBPush_registerNotification_m143506433, _NCMBPush_registerNotificationWithLocation_m840203791 ) "_clearAll", referenced from: _NCMBPush_ClearAll_m3408143303 in Bulk_Assembly-CSharp_1.o _NCMBPush_clearAll_m88351687 in Bulk_Assembly-CSharp_1.o (maybe you meant: _NCMBPush_clearAll_m88351687) "_getInstallationProperty", referenced from: _NCMBManager_getInstallationProperty_m439137710 in Bulk_Assembly-CSharp_1.o _NCMBManager_CreateInstallationProperty_m2958353256 in Bulk_Assembly-CSharp_1.o (maybe you meant: _NCMBManager_getInstallationProperty_m439137710) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

ご回答のほど、よろしくお願い申しあげます。

goofmint commented 6 years ago

Unity 2017.3.0fで最新版のSDK(v3.2.1)のiOSで試して問題ないとの回答を中の開発陣からもらったのですが、SDKを最新版にして試してみてもらえますか?