首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未加载的库:@rpath/SwiftyStoreKit.framework/Versions/A/SwiftyStoreKit - macCatalyst

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

Stack Overflow用户
提问于 2021-03-09 12:05:57
回答 1查看 288关注 0票数 0

mac Catalyst的错误导致运行失败

代码语言:javascript
复制
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的情况下运行,但是如果我在添加时得到这个错误和断点

代码语言:javascript
复制
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催化剂的pods:https://github.com/fermoya/cocoapods-catalyst-support

使用

Xcode : 12.4 macOS : Big Sur 11.2.2

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-10 10:39:21

SwiftStoreKitSwift软件包管理器集成解决了这个问题。

如果您使用的是Xcode 11或更高版本:

Dependency...

  • Specify

  • 单击文件

  • Swift软件包

  • 添加包git用于SwiftyStoreKit.

https://github.com/bizz84/SwiftyStoreKit.git

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66546570

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档