SwiftyStoreKit
SwiftyStoreKit copied to clipboard
dyld: Library not loaded: @rpath/SwiftyStoreKit.framework/Versions/A/SwiftyStoreKit - macCatalyst
Run fails with the error for 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
This is my podfile
,ya this contains more pods other. than SwiftyStoreKit
.
i am able to run without the SwiftyStoreKit
, but if i add at then getting this error and breakpoint
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
i have solved the issue by moving to Swift Package manager, earlier i was using it with Pods. But this must be working with Pods too? so i am not closing the issue. just quoting the workaround for some one who comes here