我有一个包含 mfp JSON 存储的科尔多瓦项目。当我使用 xcode 7.2 构建项目时(启用 Bitcode 设置为 false),它会遇到错误:
"_EVP_CIPHER_CTX_cleanup", referenced from:
+[JSONStoreSecurityUtils _doEncrypt:key:withIV:] in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreSecurityUtils.o)
+[JSONStoreSecurityUtils _doDecrypt:key:withIV:withCorrectIVConversion:withCorrectKeyConversion:] in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreSecurityUtils.o)
[...50 further errors...]
"_sqlite3_step", referenced from:
___36-[JSONStoreDatabaseManager execute:]_block_invoke in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreDatabaseManager.o)
___35-[JSONStoreDatabaseManager update:]_block_invoke in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreDatabaseManager.o)
___47-[JSONStoreDatabaseManager deleteFromDatabase:]_block_invoke in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreDatabaseManager.o)
___47-[JSONStoreDatabaseManager selectInto:withSQL:]_block_invoke in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreDatabaseManager.o)
___50-[JSONStoreDatabaseManager selectAllInto:withSQL:]_block_invoke in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreDatabaseManager.o)
___35-[JSONStoreDatabaseManager insert:]_block_invoke in IBMMobileFirstPlatformFoundationJSONStore(JSONStoreDatabaseManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
看起来它没有架构 arm64 的相关 JSONStore 库。如果我尝试在模拟器上运行,它会失败,找不到架构 x86_64。
如果要重现此问题,请按照下列步骤操作:
- 我从 mfp.help使用了这个项目
- 添加ios环境:mfp cordova platform add
- 多功能一体机推送
- 在 xcode 中打开项目,禁用 bitcode 并在设备/模拟器上运行
mfp cordova 插件列表显示如下:
cordova-plugin-mfp 7.1.0 "IBM MobileFirst Platform Foundation"
cordova-plugin-mfp-jsonstore 7.1.0 "IBM MobileFirst Platform Foundation - JSONStore"
cordova-plugin-mfp-push 7.1.0 "IBM MobileFirst Platform Foundation - Push Notifications"
org.apache.cordova.device 0.2.13 "Device"
org.apache.cordova.dialogs 0.2.11 "Notification"
org.apache.cordova.geolocation 0.3.11 "Geolocation"
org.apache.cordova.globalization 0.3.3 "Globalization"
org.apache.cordova.inappbrowser 0.5.4 "InAppBrowser"
org.apache.cordova.network-information 0.2.14 "Network Information"
我尝试通过 mfp cordova plugin update 更新插件,但这没有帮助。
我使用这个版本的cli:$ mfp -v 7.1.0.00.20151023-1449