Matchstic / iOSOpenDev

An extended Xcode build system for jailbroken iOS devices
Other
44 stars 5 forks source link

Fails to transfer SDKs #1

Closed RedenticDev closed 3 years ago

RedenticDev commented 3 years ago

Setup

macOS Big Sur 11.1, Xcode 12.3 (Xcode.app) and Xcode 11.7 (Xcode 11.7.app). Ran install script twice as I forgot sudo in the first one.

1

Followed the instructions, but initial setup says:

[...]
[*] Transferring SDKs...
cp: cannot overwrite directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/IOKit.framework/Versions/Current with non-directory /opt/iOSOpenDev/deps/sdks//iPhoneOS9.3.sdk/System/Library/Frameworks/IOKit.framework/Versions/Current
[...]

(Same thing for 2 other sdks)

I suppose you added an extra / at the end of the first cp argument here that makes the copy fail, and probably 2 lines above too (no error concerning that)

2

During the same setup, an error occurred while installing simject, saying:

[*] Installing simject
Makefile:10: /tool.mk: No such file or directory
make[1]: *** No rule to make target '/tool.mk'.  Stop.
make: *** [Makefile:10: clean] Error 2
cp: /opt/iOSOpenDev/deps/simject/bin/resim: No such file or directory

3

Is it possible to revert changes back to stock Xcode? If yes how?

4

/opt folder requires sudo for me, so maybe it's worth mentioning it in the instructions?

Matchstic commented 3 years ago

1

You probably can clear out the problematic SDKs at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ and try again. I personally use my own set of SDKs, whereas this repo uses ones from theos which might be a problem.

2

Ah, thats due to THEOS not being set yet. Try doing export THEOS=/path/to/theos before trying the install.

3

Kind of... you have to revert the changes done to SDKSettings.plist inside iPhoneOS.sdk, and then its a case of just going backwards through the install script to undo it. Otherwise, just delete Xcode and re-install it.

4

Ah, yeah, probably should sort that.

Matchstic commented 3 years ago

README has been updated. Please can you check if installation works with the revised steps?

RedenticDev commented 3 years ago

Thanks for your quick answer! Okay so I try your solution #1, then I export THEOS (again lol) and redo the installation as earlier.

RedenticDev commented 3 years ago

Ok cleaning SDKs makes transfer now working properly and everything else too EXCEPT there is still the Makefile error installing simject, even with your modified 4. command

Matchstic commented 3 years ago

For now, try just skipping the simject install procedure. This is done by passing --no-simject as an argument to the install script.

RedenticDev commented 3 years ago

Okay thanks.