Building the project

631 views
Skip to first unread message

tedj...@gmail.com

unread,
Aug 21, 2017, 12:56:54 PM8/21/17
to j2objc-discuss
I have downloaded the source from both repo and the wiki and in both cases I run into an issue that when I run make dist I get an error

xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphonesimulator'
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcrun: error: SDK "watchos" cannot be located
xcrun: error: SDK "watchos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'watchos'
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcrun: error: SDK "appletvos" cannot be located
xcrun: error: SDK "appletvos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'appletvos'
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcrun: error: SDK "appletvsimulator" cannot be located
xcrun: error: SDK "appletvsimulator" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'appletvsimulator'
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
compiling Classes/JreEmulation.h
clang: error: no such file or directory: 'iOS'
clang: error: no such file or directory: 'SDKs'
clang: error: no such file or directory: 'located.'
clang: error: no such sysroot directory: 'No' [-Werror,-Wmissing-sysroot]
make[1]: *** [/workspace/j2objc-2.0.2/jre_emul/build_result/objs-iphone/JreEmulation.h.pch] Error 1
make: *** [jre_emul_dist] Error 2

Did anyone run into this issue before?

Tom Ball

unread,
Aug 21, 2017, 1:56:23 PM8/21/17
to j2objc-discuss
Install the latest version of Xcode, then follow these steps to install its command-line tools. This assumes you're building on a Mac, as required to use the project.

--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tedj...@gmail.com

unread,
Aug 21, 2017, 2:17:09 PM8/21/17
to j2objc-discuss, tedj...@gmail.com
I have xcode 8.3.3 - I will try to see if updating to 9 will fix it (after I recover my apple id password). Command line tools were already installed.

Tom Ball

unread,
Aug 21, 2017, 2:43:16 PM8/21/17
to j2objc-discuss, tedj...@gmail.com
It sounds like your Xcode installation is messed up (which lots of Mac open-source projects are getting reports about): https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error

tedj...@gmail.com

unread,
Aug 21, 2017, 4:09:06 PM8/21/17
to j2objc-discuss, tedj...@gmail.com
Thanks, it seems the issue was resolved by sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

On Monday, August 21, 2017 at 9:56:54 AM UTC-7, tedj...@gmail.com wrote:

tedj...@gmail.com

unread,
Aug 23, 2017, 6:41:39 PM8/23/17
to j2objc-discuss, tedj...@gmail.com
I managed to build j2objc and then play around with simple programs. My goal is now to achieve this:
I have a hello world program that uses a jar, which itself contains few other jars which are opensource apache libraries. The main jar is created using an ant script. I know j2objc requires src - I can probably find source for all the opensource libraries. I also know j2objc does not support ant.

How would you recommend to go about this task?

Reply all
Reply to author
Forward
0 new messages