我已经合并SpatialIite到一个Xcode项目中,该项目使用头文件Proj.4,只有一个头文件.两者都是Xcode项目并具有静态目标.
我正在尝试从git子模块迁移到Cocoapods.由于静态目标似乎很难与Cocoapods一起使用,我只想以通常的方式构建项目.我做了podspec Proj.4.写完podfile之后SpatialLite我收到了警告:
[!] The target `SpatialiteIOS [Debug]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `SpatialiteIOS [Debug]` overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `SpatialiteIOS [Debug - Release]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- …Run Code Online (Sandbox Code Playgroud) 由于我将 Firebase 添加到我的项目中,实时预览不再有效。常规构建确实有效,只是没有实时预览。
我尝试按照所有这些答案解决方案和评论进行操作,但没有运气(尽管与 SwiftUI 无关,但该问题有相同的错误)。
诊断:
链接器命令失败,退出代码为 1(使用 -v 查看调用)
LinkDylibError:无法构建 UserViews.swift
链接失败:链接器命令失败,退出代码为 1(使用 -v 查看调用)
ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/SharedFrameworks-iphonesimulator'
Undefined symbols for architecture x86_64:
"___llvm_profile_runtime", referenced from:
___llvm_profile_runtime_user in FirebaseCore(FIRAppAssociationRegistration.o)
___llvm_profile_runtime_user in FirebaseCore(FIRComponentType.o)
___llvm_profile_runtime_user in FirebaseCore(FIRConfiguration.o)
___llvm_profile_runtime_user in FirebaseCore(FIRCoreDiagnosticsConnector.o)
___llvm_profile_runtime_user in FirebaseCore(FIRDiagnosticsData.o)
___llvm_profile_runtime_user in FirebaseCore(FirebaseCore-dummy.o)
___llvm_profile_runtime_user in FirebaseCore(FIROptions.o)
...
(maybe you meant: ___llvm_profile_runtime_user)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to …Run Code Online (Sandbox Code Playgroud) 我通过添加firebase到我的ios项目cocoapods。但是表演后
`pod install`
Run Code Online (Sandbox Code Playgroud)
我收到体系结构arm64的未定义符号:错误:
错误的完整列表:
`Undefined symbols for architecture arm64:
"___ubsan_handle_add_overflow", referenced from:
_ReadRawVarInt32 in
FirebaseMessaging(FIRMessagingCodedInputStream.o)
-[FIRMessagingConnection willProcessProto:] in FirebaseMessaging(FIRMessagingConnection.o)
-[FIRMessagingConnection willSendProto:] in FirebaseMessaging(FIRMessagingConnection.o)
-[FIRMessagingDelayedMessageQueue queueMessage:] in FirebaseMessaging(FIRMessagingDelayedMessageQueue.o)
-[FIRMessagingDataMessageManager handleExpirationForDataMessage:] in FirebaseMessaging(FIRMessagingDataMessageManager.o)
+[FIRMessagingReceiver nextMessageID] in FirebaseMessaging(FIRMessagingReceiver.o)
-[FIRMessagingRmqManager loadInitialOutgoingPersistentId] in FirebaseMessaging(FIRMessagingRmqManager.o)
...
"___ubsan_handle_divrem_overflow", referenced from:
_FIRMessagingGetFreeDiskSpaceInMB in
FirebaseMessaging(FIRMessagingUtilities.o)
"___ubsan_handle_float_cast_overflow", referenced from:
-[FIRMessaging setupSyncMessageManager] in
FirebaseMessaging(FIRMessaging.o)
-[FIRMessagingDelayedMessageQueue calculateTimeoutInMillisWithDelayInSeconds:] in
FirebaseMessaging(FIRMessagingDelayedMessageQueue.o)
-[FIRMessagingClient retryConnectionImmediately:] in
FirebaseMessaging(FIRMessagingClient.o)
_FIRMessagingCurrentTimestampInSeconds in
FirebaseMessaging(FIRMessagingUtilities.o)
_FIRMessagingCurrentTimestampInMilliseconds in
FirebaseMessaging(FIRMessagingUtilities.o)
_FIRMessagingGetFreeDiskSpaceInMB in
FirebaseMessaging(FIRMessagingUtilities.o)
"___ubsan_handle_load_invalid_value", referenced from: …Run Code Online (Sandbox Code Playgroud)