Shopify / mobile-buy-sdk-ios

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.
MIT License
452 stars 199 forks source link

Error when installing with pods #987

Closed ToyboxLabs closed 5 years ago

ToyboxLabs commented 5 years ago

When I try to include this in my pods file I get the following error:

[!] Unable to determine Swift version for the following pods:

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.

ToyboxLabs commented 5 years ago

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.