每次从CocoaPods导入文件时,我都会收到Apple Mach-O链接器错误.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FBSession", referenced from: someFile
ld: symbol(s) not found for architecture arm64
Run Code Online (Sandbox Code Playgroud)
对于我使用的各种Pod,我得到了大约12个.
我正在尝试使用XCode 5为iPhone 5S构建.
我一直在尝试使用SO的各种解决方案,但还没有任何解决方案.
如何修复Apple Mach-O链接器错误?
刚发现另一个可能有趣的警告,我希望这能引导我找到解决方案:
Ignoring file ~/Library/Developer/Xcode/DerivedData/SomeApp/Build/Products/Debug-iphoneos/libPods.a,
Run Code Online (Sandbox Code Playgroud)
file was built for archive which is not the architecture being linked (arm64):~/Library/Developer/Xcode/DerivedData/someApp/Build/Products/Debug-iphoneos/libPods.a
我需要为我的要求制作swift静态库.我制作了swift静态库,它使用swift和Obj-c代码.我通过桥文件包含了Obj-c文件.我能够编译swift静态库而不会出现任何错误,并获取libMySwift.a文件.我使用Xcode9.3和Swift4来编译库.
我在obj-c项目中包含了libMySwift.a,还包含了obj-c兼容的头文件来访问项目中的lib.当我尝试编译项目时,它会给出以下警告和200多个错误.
Auto-Linking library not found for -lswiftSwiftOnoneSupport
Auto-Linking library not found for -lswiftCore
Auto-Linking library not found for -lswiftQuartzCore
Auto-Linking library not found for -lswiftCoreImage
Auto-Linking library not found for -lswiftCoreGraphics
Auto-Linking library not found for -lswiftObjectiveC
Auto-Linking library not found for -lswiftDispatch
Auto-Linking library not found for -lswiftMetal
Auto-Linking library not found for -lswiftFoundation
Auto-Linking library not found for -lswiftUIKit
Auto-Linking library not found for -lswiftDarwin
Auto-Linking library not found for -lswiftCoreFoundation
Run Code Online (Sandbox Code Playgroud)
如果我遗漏任何步骤或需要添加任何内容,请告诉我.
当我运行我的项目时,我得到这样的错误:

似乎我的cocoapods中的所有框架都有问题.这是我的cocoapods问题吗?我已经重新安装了我的cocoapods,并使用了'pod setup'或'pod install'等等,但它不起作用,我仍然有相同的错误...而在Xcode中,'Podfile'上的红色'rd'像这样,我不知道它是否与错误有关.
pod 1.0.0 ruby 2.0.0 xcode 7.3.1任何人都有同样的问题?
我正在尝试通过 npm 安装 react-native-fbsdk,虽然我的构建之前运行良好,但一旦我安装了库并安装了 pod,我就会收到以下错误:
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftsimd'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find …Run Code Online (Sandbox Code Playgroud) 我可以通过 构建我的应用程序flutter run,但不能在 Xcode for Archive 中构建。有谁知道如何解决这个问题?
Undefined symbols for architecture x86_64:
"_pb_encode", referenced from:
_nano_two_pass_encoding in GoogleAppMeasurement(encoder_common.o)
"_pb_encode_tag_for_field", referenced from:
_apmpb_encode_repeated_app_property in GoogleAppMeasurement(apmpb_app_property_encoder.o)
_apmpb_encode_repeated_audience in GoogleAppMeasurement(apmpb_audience_encoder.o)
_apmpb_encode_repeated_audience_leaf_filter_result in GoogleAppMeasurement(apmpb_audience_leaf_filter_result_encoder.o)
_apmpb_encode_repeated_client_property in GoogleAppMeasurement(apmpb_client_property_encoder.o)
_apmpb_encode_repeated_custom_property in GoogleAppMeasurement(apmpb_custom_property_encoder.o)
_apmpb_encode_repeated_dynamic_filter_result_timestamp in GoogleAppMeasurement(apmpb_dynamic_filter_result_timestamp_encoder.o)
_apmpb_encode_repeated_event in GoogleAppMeasurement(apmpb_event_encoder.o)
...
"_pb_read", referenced from:
_apmpb_decode_repeated_app_property in GoogleAppMeasurement(apmpb_app_property_decoder.o)
_apmpb_decode_repeated_audience in GoogleAppMeasurement(apmpb_audience_decoder.o)
_apmpb_decode_repeated_audience_leaf_filter_result in GoogleAppMeasurement(apmpb_audience_leaf_filter_result_decoder.o)
_apmpb_decode_repeated_client_property in GoogleAppMeasurement(apmpb_client_property_decoder.o)
_apmpb_decode_repeated_custom_property in GoogleAppMeasurement(apmpb_custom_property_decoder.o)
_apmpb_decode_repeated_dynamic_filter_result_timestamp in GoogleAppMeasurement(apmpb_dynamic_filter_result_timestamp_decoder.o)
_apmpb_decode_repeated_event in GoogleAppMeasurement(apmpb_event_decoder.o)
...
"_pb_decode", referenced from:
_apmpb_decode_app_property in GoogleAppMeasurement(apmpb_app_property_decoder.o)
_apmpb_decode_audience in GoogleAppMeasurement(apmpb_audience_decoder.o) …Run Code Online (Sandbox Code Playgroud) 我有一个反应本机应用程序,当从 XCode 运行时,它按预期工作(在模拟器上构建和运行)。但是当我尝试从我的终端运行它时
\nnpx react-native run-ios\nRun Code Online (Sandbox Code Playgroud)\n我收到错误:
\nerror Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening foo.xcworkspace.\nCommand line invocation:\n /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace foo.xcworkspace -configuration Debug -scheme foo -destination id=FEB37\n\nUser defaults from command line:\n IDEPackageSupportUseBuiltinSCM = YES\n\nxcodebuild: error: The workspace named "foo" does not contain a scheme named "foo". The "-list" option can be used to find the …Run Code Online (Sandbox Code Playgroud) 我在IOS上有一个框架项目,我想把它改成一个cocoapod项目,不过我从制作cocoapod文档中读到的,它通常用于源代码打开的项目.然而,我们的SDK是商业的,我们的客户正在为此付钱,所以我想将我现有的框架包含在cocoapod库(私人或公共)中,但我不希望看到我的源代码.有可能吗?
我已经看到谷歌分析就是这样的(https://developers.google.com/analytics/devguides/collection/ios/v3/)
有谁知道我该怎么办?
谢谢
我有这个错误
? ld: library not found for -lDoubleConversion
? clang: error: linker command failed with exit code 1 (use -v to see invocation)
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening App.xcworkspace
** BUILD FAILED **
The following build commands failed:
Ld /Users/mohamedelmi/workspace/elmi/food-frontend/ios/build/App/Build/Intermediates.noindex/App.build/Release-iphonesimulator/App.build/Objects-normal/x86_64/App normal x86_64
(1 failure)
Run Code Online (Sandbox Code Playgroud)
这是我所做的
我在Xcode 11 Beta 4中从事过一个项目,然后降级为Xcode 10,无法打开该项目。
我想将我的应用程序提交到应用程序商店,但是我在Xcode 11 beta 4中不断收到错误消息。我是一个初学者,我知道我篡改了试图使其正常运行的构建设置。我删除了Xcode 11并下载了Xcode 10尝试通过它进行存档,但是现在我什至无法使用Xcode 10打开项目。
我相信我是在Xcode 9上启动该项目的。我尝试存档,但是"SDK Version Issue"旧的iOS出现了。因此,我更新了Mac的操作系统,并用Xcode 11 beta替换了Xcode 9。尝试归档时会出现更多错误,并且我更改了体系结构和代理等等。因此,我删除了Xcode 11,并尝试了Xcode 10,但无法打开该项目。
它说:
“无法打开,因为它是未来的Xcode项目文件格式。请使用兼容版本的Xcode调整项目格式,以允许此版本的Xcode打开它。”
我该如何解决这个问题?
我的Swift项目可以正常构建和运行,但是由于以下警告而导致的每次归档尝试均失败,但出现错误:
Could not find or use auto-linked library 'swiftFoundation'
Could not find or use auto-linked library 'swiftMetal'
Could not find or use auto-linked library 'swiftDarwin'
Could not find or use auto-linked library 'swiftUIKit'
Could not find or use auto-linked library 'swiftCoreFoundation'
Could not find or use auto-linked library 'swiftObjectiveC'
Could not find or use auto-linked library 'swiftDispatch'
Could not find or use auto-linked library 'swiftCoreImage'
Could not find or use auto-linked library 'swiftQuartzCore'
Could not find or use auto-linked library …Run Code Online (Sandbox Code Playgroud) 我正在将 React Native 版本从 0.63.0 升级到 0.64.0,但编译时出现此错误?你知道如何解决吗?
致命错误:模块映射文件'/Users/iteme/Library/Developer/Xcode/DerivedData/apparta-bdsropvgtdqyxfbzxyuwoltrneow/Build/Products/Debug-iphonesimulator/lottie-react-native/lottie_react_native.modulemap'找不到
这是环境:“lottie-ios”:“^3.1.8”,“lottie-react-native”:“^4.0.2”,cocapods:1.11.2
尝试了这个但没有成功:
1-. rm -rf ~/Library/Developer/Xcode/DerivedData 2-. 消除Podfile.lock 3-。吊舱安装
和
和
npm 卸载lottie-ios npm 安装lottie-ios@3.1.8 cd ios pod install
我有一个使用Swift和pods(firebase)构建的应用程序。我有18个三角形和100个红色错误,这些是以前没有的。它们仅在我尝试存档我的应用程序时出现。
我已经尝试了所有这些方法(添加搜索路径,添加空白swift文件,删除框架路径)
将Swift Static库与Objective-C项目一起使用时会出错
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftsimd'
ld: warning: Could not find or use auto-linked library 'swiftGLKit'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftSpriteKit'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find …Run Code Online (Sandbox Code Playgroud)