dyld:库未加载:@rpath/SwiftyStoreKit.framework/Versions/A/SwiftyStoreKit - macCatalyst

问题描述

运行失败,错误 mac Catalyst

require 'cocoapods-catalyst-support'
 platform :ios,'10.0'

target 'MyApp' do
 use_frameworks!

pod 'SwiftyStoreKit'
end

# Configure your macCatalyst dependencies
catalyst_configuration do
    # Uncomment the next line for a verbose output
     verbose!

    # ios '<pod_name>' # This dependency will only be available for iOS
    # macos '<pod_name>' # This dependency will only be available for macOS
end

post_install do |installer|

    installer.configure_catalyst
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
      config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'Yes'
     end
  end
end
end

这是我的 podfile ,这包含更多其他的豆荚。比SwiftyStoreKit。 我可以在没有 SwiftyStoreKit 的情况下运行,但是如果我添加 at 则会收到此错误和断点

dyld: Library not loaded: @rpath/SwiftyStoreKit.framework/Versions/A/SwiftyStoreKit
  Referenced from: /Users/admin/Library/Caches/...../Build/Products/Debug-maccatalyst/MyApp.app/Contents/MacOS/MyApp
  Reason: image not found

我正在使用此工具为 mac 催化剂排除 Pod:https://github.com/fermoya/cocoapods-catalyst-support

使用

Xcode:12.4 macOS:大苏尔 11.2.2

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)