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

Building simject for OSX gives errors #6

Closed ghost closed 8 years ago

ghost commented 8 years ago

When trying to install simject, I get these error messages. How do I fix them please. :3

ld: warning: URGENT: building for OSX, but linking against dylib (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/libobjc.dylib) built for iOS. Note: This will be an error in the future.
ld: warning: URGENT: building for OSX, but linking against dylib (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks//Foundation.framework/Foundation) built for iOS. Note: This will be an error in the future.
ld: warning: ignoring file /opt/theos/lib/libsubstrate.dylib, missing required architecture x86_64 in file /opt/theos/lib/libsubstrate.dylib (3 slices)
ld: warning: URGENT: building for OSX, but linking against dylib (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation) built for iOS. Note: This will be an error in the future.
ld: warning: URGENT: building for OSX, but linking against dylib (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/libstdc++.dylib) built for iOS. Note: This will be an error in the future.
ld: warning: URGENT: building for OSX, but linking against dylib (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/libSystem.dylib) built for iOS. Note: This will be an error in the future.
Undefined symbols for architecture x86_64:
  "_MSHookMessageEx", referenced from:
      _logosLocalInit() in simject.xm.4662ce3f.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/iphone_simulator/simject.dylib] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [simject.all.tweak.variables] Error 2
ghost commented 8 years ago

I fixed it. All I had to do was update this to support the latest build of theos, then I ran it