Last active
May 10, 2024 15:36
-
-
Save oliverkrakora/263d7b3a39a1249cd3e7f77a3fd20e09 to your computer and use it in GitHub Desktop.
apple dev issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A reference to document problems that I encountered related to apple development and how to fix them | |
## Git | |
### Define git credential helper of choice | |
`git config --global credential.helper osxkeychain` | |
### Add credentials to git credential helper | |
`git credential fill` | |
now you need to enter the following information, confirming each line of input with enter, when you are done leave one line empty and confirm again with enter | |
protocol=HTTPS | |
host=example.com | |
username=YOURUSERNAMEHERE | |
password=YOURPASSWORDHERE | |
See [git-credential](https://git-scm.com/docs/git-credential) for detailed information | |
## Using a HTTPS Git with Xcode and SPM | |
### Tell git to use the Keychain to store http credentials | |
`git config --global credential.helper osxkeychain` | |
### Tell Xcode to use system git credentials | |
`defaults write com.apple.dt.Xcode IDEPackageSupportUseBuiltinSCM true` | |
### Tell xcodebuild to use system git credentials | |
**Just pass the following flag to xcodebuild** | |
`xcodebuild -usePackageSupportBuiltinSCM` | |
## Crashes | |
### Symbolizing crash reports with crash reporting service | |
I noticed that the crash reporting service I used was not able to symbolize crash reports due to missing dSyms | |
all dSysms were correctly provided trough a build phase script and bitcode was disabled, to process the crashes I cooked my own dSyms: | |
1. find UUID of missing dSym file | |
2. obtain a copy of a valid dSym file of the app | |
3. obtain UUID of that dSym file *dwarfdump -u YOURdSym.dsym* | |
4. open the DWARF file of the dSym in a hex editor and lookup the UUID you obtained through the last command | |
5. replace the UUID with the one from the crash reporting service | |
6. upload that dSym to crash reporting service | |
original source: https://medium.com/geekculture/how-to-fix-the-missing-dsyms-on-firebase-crashlytics-5f36d9db51d9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment