-
-
Notifications
You must be signed in to change notification settings - Fork 878
How to implement the SDK #1663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @mtrezza and thank you for this explanation and these steps. I tried to follow them but after running Here is the execution result in the console:
My Cartfile only contains this line:
Thank you for your help |
You could try to install the tvOS simulators in Xcode and run carthage again. It's apparently missing a simulator. Alternatively, if you only need to build for iOS try |
Closing as release 2.0.0 supports import via Swift Package Manager. |
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
The Parse ObjC SDK can officially only be implemented using carthage. All other ways are not officially supported anymore. See below for how to implement the SDK using carthage.
Issue
The Parse ObjC SDK has several build-issues when trying to add it via the usual ways. This is because it hasn't been updated according to changes in Xcode / framework requirements for a while:
Solution
We have an open issue for Swift Package Manager support. There have been attempts, but no pull request made it over the finish line. If you want to help, it would be very much appreciated. There are pull requests as proof of concepts where SPM is added, but they need refinement.
Implement using Carthage in Xcode 14
The following approach is currently known to work for Xcode 14 to build the iOS frameworks:
carthage update --use-xcframeworks --platform iOS
Parse.xcframework
andBolts.xcframework
to the project and choose "Embed and sign".Important:
ParseFacebookUtils
andParseTwitterUtils
won't work because they seem to look for a fat file dependency which isn't available. However, these two frameworks are just convenience wrappers, if you need Facebook or Twitter authentication, usePFUser.linkWith()
.carthage update --use-xcframeworks --platform iOS
once, then open the Parse SDK inCarthage/Checkouts
with Xcode and delete the schemes for building the static frameworks, then runcarthage build --use-xcframeworks --platform iOS
.The text was updated successfully, but these errors were encountered: