--> -->
#blog2navi() *Nativescript環境でXcode12にする際のメモ [#g34cda38] * 概要 [#xfdf5c68] NativeScriptの開発で、Xcodeを12にupdateしたところ、幾つかエラーが出て解決したので、それらをメモします。 * トラブル [#tcb6b5d7] ** Unable to apply changes on device: B6781AE9-CCE0-4C85-8701-83519A583FDB. Error is: ENOENT: no such file or directory, scandir '/Users/atsumi/Library/Developer/CoreSimulator/Devices/B6781AE9-CCE0-4C85-8701-83519A583FDB/data/Applications'. [#g1dbda27] ** warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'MDFInternationalization' from project 'Pods') [#w85dd66b] ** Unable to apply changes on device: {DEVICE_ID}. Error is: ENOENT: no such file or directory, scandir '/Users/{USER_NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE_ID}/data/Applications'. [#q9c2c1d1] - ''ld: building for iOS Simulator, but linking in dylib built for iOS, file '/.../MyApp/platforms/ios/internal//NativeScript.framework/NativeScript' for architecture arm64''~ シミュレータ用にビルドしてるのにライブラリがarm64だよと言って怒られるようです。 解決方法は、以下のサイトを参考に、&inlinecode{App_Resources/iOS/build.xcconfig}に以下を追加します。 EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8 EXCLUDED_ARCHS=$(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)) 参考: https://github.com/NativeScript/NativeScript/issues/8782#issuecomment-693983462 - ''Unable to apply changes on device: {DEVICE_ID}. Error is: ENOENT: no such file or directory, scandir '/Users/{USER_NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE_ID}/data/Applications'.''~ シミュレータに変更を反映できないと言って怒られます。~ 表記されているディレクトリが無いようなので、作ってあげます(本当かいな。でもこれで解決した)。 $ cd /Users/{USER_NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE_ID}/data/ $ mkdir Applications - ''warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'MDFInternationalization' from project 'Pods')''~ 対象のOSのバージョンが8だよと言って注意されます。~ これはCocoaPodsでインストールしたライブラリが8.0以降対応となっているためのようで、NativeScript側の設定でどうこうするものではなさそうです。実害は無いようなので放置します。 参考:https://qiita.com/temoki/items/46ad22940e819a132435 #htmlinsert(twitterbutton.html) RIGHT:Category: [[[NativeScript>日記/Category/NativeScript]]] - 17:48:45 ---- RIGHT:&blog2trackback(); #comment(above) #blog2navi()