fatal: not a git repository (or any of the parent directories): .git Command PhaseScriptExecution failed with a nonzero exit code
iOS-Propelit opened this issue · 6 comments
Usually this error comes up, when you are executing from the wrong folder. Can you more precisely describe the steps you did? Try to follow these instructions.
Ok I see that I don't have Mojave and Xcode 10.2. So is it mandatory, wouldn't it be compatible with Xcode 10.1?
Yes, unfortunately you need Swift 5.0 and Xcode 10.2, which requires you to upgrade to Mojave. Xcode 10.1 will not work. See also here. Of course, we would like to support older versions, but apparently this is not possible without forking.
ok, ok thank you appreciate your help.
I know this issue is closed, but recently ran into the same problem with Xcode 12.4 (running on M1 Mac). Worked around it as follows:
- Go to Target MSDKUI_Demo > Build Phases.
- Expand 'Adapt to Build Platform'
- Comment out the line 'git checkout $PROJECT_DIR/Commons/Info.plist' (place # in front of it)
- add line after this line (before fi) containing '(exit 0)'
I'm not sure following is necessary, but I also commented out that line in the 'Revert changed from 'Adapt to Build Platform' ' section
Hope this helps someone
Thanks a lot, @guidove! PS: I was not able to find 'Adapt to Build Platform' under Build Phases in Xcode 12.4 (also executed on M1 Mac). Did you meant something else?