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
Move to Swift Package Manager disregarding Cocoapods #496
Conversation
b54475c
to
c7bda05
Compare
Thanks Danny. Basically, the
If I remember correctly, I updated these dependency to support ECDSA key for SSH cloning. Therefore, we need either upstream the changes of my dependency updates or merge upstream changes to my fork. |
* Build as many dependencies as possible with SPM. * Xcworkspace is no longer needed. * Collecting coverage information does unfortunately cause linking errors in Base32. So it is disabled for now.
c7bda05
to
f5728fa
Compare
I managed to build the fork successfully as a normal framework (no XCFramework). This is anyway not yet required and can also be done separately afterwards when the other changes are okay. For ObjectivePGP I also used the upstream repository, because it contains the |
I read through related threads around this fix:
We can switch back to upstream ObjectivePGP. I'll update here if anything wrong. |
I don't know why the App Store Connect report this error for the build:
https://github.com/mssun/passforios/runs/3464311456#step:10:495 |
This seems to be a bug in Xcode. We may try with #501. |
@SimplyDanny can you please elaborate on your setup for me? I'm running into the same issue you had (#490) and it's getting me a bit stumped - it seems that every time when I get a new iPhone/there is an iOS upgrade I try to build the project again and it just doesn't work. I'm building with Xcode 13.1 for iOS 15 |
What exactly are you interested in, @sanderdekoning? On Intel the steps mentioned in the README should work:
Where are you getting issues? The build on Apple Silicon works somehow but you cannot run the app in the simulator. This is due to the missing arm64 macOS target in Objective-Git. I already had success in building it manually and are currently working on bringing it back to upstream or at least the fork |
Thanks for contacting @SimplyDanny - see my comment #519 (comment) on how I managed to get the build working. Indeed I used
Let me know if I can help in any way in adding Apple Silicon support, or help with anything else. It's great to hear you've had some success with that. Indeed it also seems like a good idea to move to upstream and negate the mssun/objective-git fork. |
Now that SPM is integrated into Xcode and works for iOS project, many project seem to move to it. I would like to give it a try, too. The project setup becomes a bit easier and the project structure looks clearer, I think.
The build of the ObjectiveGit fork fails with a linker error. This has nothing to do with the switch to SPM, though. I'm not sure why the fork is needed at all. There was some activity in the upstream repository recently, so maybe we can move back to it? Turns out that this would also fix #490. Otherwise I can replace
"libgit2/objective-git"
by"mssun/objective-git"
again.