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

Make Setup - Error: "could not build module 'ObjectiveC'" / "expected a type" #40

Closed pr0crustes closed 6 years ago

pr0crustes commented 6 years ago

To be clear, i am running macOS High Sierra 10.13.5, Xcode 9.4.1, theos up to date and working.

After cloning and chdir to the simject folder, at the "make setup" step, the following error occurried:

machine:~ nonroot$ cd /Users/nonroot/Documents/Dev/IOS/simject `machine:simject nonroot$ make setup` `==> Cleaning…` `==> Cleaning…` `> Making all for tool respring_simulator…` `==> Compiling respring_simulator.mm (i386)…` `While building module 'Foundation' imported from /opt/Theos/Prefix.pch:11:` `While building module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:9:` `In file included from <module-includes>:2:` `In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/./Protocol.h:51:` `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/Object.h:141:28: error:` ` expected a type` `- (id)forward: (SEL)sel : (marg_list)args;` ` ^` `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/Object.h:142:29: error:` ` expected a type` `- (id)performv: (SEL)sel : (marg_list)args;` ` ^` `While building module 'Foundation' imported from /opt/Theos/Prefix.pch:11:` `In file included from <module-includes>:2:` `In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:` `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:9:10: fatal error:` ` could not build module 'ObjectiveC'e` `#include <objc/NSObjCRuntime.h>` ` ~~~~~~~~^` `In file included from <built-in>:1:` `/opt/Theos/Prefix.pch:11:11: fatal error: could not build module 'Foundation'` ` #import <Foundation/Foundation.h>` ` ~~~~~~~^` `4 errors generated.` `make[4]: *** [/Users/nonroot/Documents/Dev/IOS/simject/respring_simulator/.theos/obj/macosx/debug/i386/respring_simulator.mm.8fc275f7.o] Error 1` `make[3]: *** [/Users/nonroot/Documents/Dev/IOS/simject/respring_simulator/.theos/obj/macosx/debug/i386/respring_simulator] Error 2` `make[2]: *** [internal-tool-all_] Error 2` `make[1]: *** [respring_simulator.all.tool.variables] Error 2` `make: *** [all] Error 2` machine:simject nonroot$ ``

the error is also at pastebin: https://pastebin.com/4bqcL14e

I tried from installing the IOS simulators (in xcode) to reinstalling THEOS, but the error persists. At the moment, i'm kind lost without knowing if i am doing something wrong or is there a problem in the instructions or the project itself. How do i solve it?