akemin-dayo / simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.
BSD 2-Clause "Simplified" License
486 stars 55 forks source link

Error: You do not have an SDK #31

Closed WillBishop closed 6 years ago

WillBishop commented 6 years ago

Getting this error upon make

==> Error: You do not have an SDK in /Applications/untitled folder/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs.

Here are the contents of /Applications/untitled folder/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs.

iPhoneSimulator.sdk iPhoneSimulator11.2.sdk

There are two sdk's there. However, my simulator is on 11.0, not the 11.2 sdk above.

Where do I get these sdks, and why are the ones already there not sufficient?

Using Xcode 9.2 (9C40b) with a iPhone 8 Plus 11.2 Simulator

PoomSmart commented 6 years ago

What if you move Xcode.app out of a space-included directory (untitled folder)? It may handle spaces in a directory path incorrectly.

WillBishop commented 6 years ago

Yes that worked :D

Heres the full output (lots of warnings, but it works)

I have a bash script executed when I build it in Sublime Text, which checks if the simulator is running (if not, open it), auto copies the dylibs to the right folder, and repsprings, so some of the output is related to that

Simulator already running
> Making all for tweak simjectExampleTweak…
==> Preprocessing simjectExampleTweak.xm…
==> Compiling simjectExampleTweak.xm (x86_64)…
==> Linking tweak simjectExampleTweak (x86_64)…
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated]
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(chkstk.S.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(chkstk2.S.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(cpu_model.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(divmodsi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(divsi3.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(divtc3.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(extendhfsf2.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(int_util.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(mulodi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(mulosi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(muloti4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(os_version_check.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(truncdfhf2.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(truncsfhf2.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(udivmodsi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(udivsi3.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_clear.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_clear_explicit.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_test_and_set.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_test_and_set_explicit.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_signal_fence.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_thread_fence.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(emutls.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
==> Stripping simjectExampleTweak (x86_64)…
==> Preprocessing simjectExampleTweak.xm…
==> Compiling simjectExampleTweak.xm (i386)…
==> Linking tweak simjectExampleTweak (i386)…
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated]
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(chkstk.S.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(chkstk2.S.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(cpu_model.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(divmodsi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(divsi3.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(divtc3.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(extendhfsf2.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(int_util.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(mulodi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(mulosi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(os_version_check.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(truncdfhf2.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(truncsfhf2.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(udivmodsi4.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(udivsi3.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_clear.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_clear_explicit.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_test_and_set.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_flag_test_and_set_explicit.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_signal_fence.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(atomic_thread_fence.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ios.a(emutls.c.o)) was built for newer iOS version (6.0) than being linked (5.0)
==> Stripping simjectExampleTweak (i386)…
==> Merging tweak simjectExampleTweak…
==> Signing simjectExampleTweak…
Service configured for next launch.
respring_simulator (C) 2016 Karen Tsai (angelXwind)
Injecting appropriate dynamic libraries from /opt/simject...
Respringing...