use_frameworks!target 'MyApp' do # 👇 Add this line pod 'PrimerSDK' # ...end
Then run pod install to install PrimerSDK on your workspace.
In case you encounter an error that the bundle needs signing on Xcode 14, add the following post-install script in your podfile.
RUBY
Copy
Ask AI
post_install do |installer| installer.pods_project.targets.each do |target| if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" target.build_configurations.each do |config| config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' end end endend
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into Xcode. In order to add PrimerSDK with Swift Package Manager:
Select your project, and then navigate to Package Dependencies
Click on the + button at the bottom-left of the Packages section