Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
When I try to include this in my pods file I get the following error:
[!] Unable to determine Swift version for the following pods:
Mobile-Buy-SDK does not specify a Swift version and none of the targets (Toybox) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.
My pod file is as follows:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'MyProject' do
pod "Mobile-Buy-SDK"
end
At one point I got it past this error, but then got over 200 errors, primarily about Swift related things not being found.
Problem was my project was not configured to accept any swift code, the solution ended up being to just add a dummy swift file to the xcode project, then xcode handled all the set up and got it to work.
When I try to include this in my pods file I get the following error:
[!] Unable to determine Swift version for the following pods:
Mobile-Buy-SDK
does not specify a Swift version and none of the targets (Toybox
) integrating it have theSWIFT_VERSION
attribute set. Please contact the author or set theSWIFT_VERSION
attribute in at least one of the targets that integrate this pod.My pod file is as follows:
At one point I got it past this error, but then got over 200 errors, primarily about Swift related things not being found.