像我这样的错误消息有很多问题,但我找不到任何适合我的解决方案。
我有一个移动应用程序,我一直在使用ionic框架和capacitor的版本2。我决定迁移到版本3,一切都在安卓和ios上运行良好。我唯一的问题是什么时候我想用app center构建我的应用程序。安卓版本的构建没有任何问题,但iOS built抛给我一个错误,如下所示:
ld: framework not found CapacitorApp
clang: error: linker command failed with exit code 1 (use -v to see invocation)下面的某个地方是错误代码:
##[error]Error: /usr/bin/xcodebuild failed with return code: 65我不知道它是否对你有帮助,但你可以在下面找到我的Podfile
platform :ios, '12.0'
use_frameworks!
# workaround to avoid Xcode 10 caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true
def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
pod 'CapacitorAppLauncher', :path => '../../node_modules/@capacitor/app-launcher'
pod 'CapacitorBrowser', :path => '../../node_modules/@capacitor/browser'
pod 'CapacitorDevice', :path => '../../node_modules/@capacitor/device'
pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
pod 'CapacitorPushNotifications', :path => '../../node_modules/@capacitor/push-notifications'
pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen'
pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
pod 'CapacitorStorage', :path => '../../node_modules/@capacitor/storage'
pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
pod 'CordovaPluginsResources', :path => '../capacitor-cordova-ios-plugins'
end
target 'App' do
capacitor_pods
# Add your Pods here
end不幸的是,我不能把我的所有代码都告诉你,但是如果你需要一些安宁,请在评论中告诉我。
更新:我能够在本地复制它。它仅在App staging架构上发生。另一款App看起来不错。

发布于 2021-11-10 18:13:27
如果您有多个模式,则需要将它们添加到Podfile中,以便它们可以使用电容器插件
target 'App Staging' do
capacitor_pods
# Add your Pods here
end发布于 2021-11-15 08:01:29
最后,我找到了解决方案。由于某种原因,我不得不复制并粘贴Frameworks Search Paths中的框架列表。它是在调试和Release模式中填写的,但对于分段调试则为空。这是我必须添加的屏幕截图。

https://stackoverflow.com/questions/69902085
复制相似问题