Codename one build IOS : fatal error: 'MapContainer.h' not found

Codename one build IOS : fatal error: 'MapContainer.h' not found

我尝试构建我的代号 one 代码,但在构建过程中出现错误:

*/dist/app-src/com_codename1_googlemaps_InternalNativeMapsImpl.m:19:10: fatal error: 'com_codename1_googlemaps_MapContainer.h' file not found
#include "com_codename1_googlemaps_MapContainer.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

我已经用旧版本的GoogleMaps.cn1lib 和最后一个版本测试过,但没有任何改变,我仍然有同样的错误。 我有这个问题,因为我已经根据我的应用程序的需要修改了 ios.plistInject:

codename1.arg.ios.plistInject=<key>NSBluetoothPeripheralUsageDescription</key><string>This app uses a BLE cardreader</string><key>UISupportedExternalAccessoryProtocols</key><array><string>com.test.reader</string></array>

我必须准确地说 "com.test.reader" 当然不是真正的价值...

我阅读了 this 并在构建提示中添加了提示:

codename1.arg.ios.pods=GoogleMaps codename1.arg.ios.pods.platform=8.0,7.0 codename1.arg.ios.pods.sources=https://github.com/CocoaPods/Specs.git

但它仍然没有构建它。

您添加了 google 地图 cn1lib 但未使用它。您需要删除它或实际使用它,请参阅:https://www.codenameone.com/blog/tip-uninstall-cn1lib.html