Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
3
Answers
Okay, I just fixed it by updating CocoaPods itself from 1.9 to 1.10
In addition to updating CocoaPods, I also had to start using Swift Packages in Xcode to import Stripe into my project. Steps are:
Remove this line from Podfile:
Re-install pods:
Then, add Stripe as a Swift Package by selecting the Project in Xcode, then selecting the ‘Swift Packages’ tab, then the plus button, and entering the link to the Stripe iOS repo:
After all this, I could build and run. I’m using SwiftUI in my project.
I got this error when I added Stripe as a Swift Package. I would only add ‘import Stripe’ and it would give this error. Turns out that file was included in my app and the App Clip didn’t have the libraries linked into it. Once I added them it worked fine.
So the problem may be target inclusion and library linking.