【发布时间】:2020-06-19 02:16:40
【问题描述】:
我的颤振应用程序在 android 模拟器上运行良好,我使用 codemagic.io 来构建 ios 版本,因为我在 Windows 上。
但是,在尝试构建 ios 应用程序时,该站点显示以下错误,我认为它与 sqflite 有关。
据我了解,我想我必须更改最低目标 ios 版本,但实际上我不知道该怎么做。任何帮助将不胜感激。
Xcode 的输出:
↳
/Users/builder/clone/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: warning: 'dispatch_queue_set_specific' **is only available on iOS 5.0 or newer** [-Wunguarded-availability]
dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'Foundation' imported from /Users/builder/clone/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:
In module 'CoreFoundation' imported from /Applications/Xcode-11.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Dispatch' imported from /Applications/Xcode-11.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
/Applications/Xcode-11.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/dispatch/queue.h:1498:1: **note: 'dispatch_queue_set_specific' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0**
dispatch_queue_set_specific(dispatch_queue_t queue, const void *key,
^
/Users/builder/clone/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: note: enclose 'dispatch_queue_set_specific' in an @available check to silence this warning
dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/clone/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: warning: 'dispatch_get_specific' **is only available on iOS 5.0 or newer** [-Wunguarded-availability]
FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);
【问题讨论】:
-
嗨@Jack,查看 Xcode 指南如何更改最低目标 iOS 版本,并且 Codemagic 可以免费 VNC 访问 macOS 计算机以更新您的 Xcode 设置
-
@MikhailTokarev 我已经将部署目标更改为 ios 11.0,但我仍然从 Codemagic 'dispatch_queue_set_specific' 收到此错误已被标记为在 iOS 5.0 中引入,但部署目标是 iOS 4.3。 0
-
警告:'sqlite3_wal_checkpoint_v2' 仅适用于 iOS 5.0 或更高版本 [-Wunguarded-availability] int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);