Reply To: Building Source Code

Home Forums OpenEars Building Source Code Reply To: Building Source Code

#1031276
dannychen
Participant

I’ve traced this issue and got some updates.

In framework_prep_scipt.py:
1. Add args ‘-I’, ‘/usr/include’, after clang: {subprocess.check_call([‘clang’, ‘-I’, ‘/usr/include’, …}.
/usr/include is where the system placed stdio.h.

2. change args from “OS X SDKs:” to “macOS SDKs:” in
subprocess.Popen([‘xcodebuild -showsdks | awk \’/^$/{p=0};p; /macOS SDKs:/{p=1}\’ | tail -1 | cut -f3′], stdout=subprocess.PIPE, shell=True)
I think it’s related to the new OS name…

After the changes, XCode run framework_prep_scipt.py and compile the source code without error.

But I got a new error:
Command ‘[‘xcodebuild’, ‘-project’, …, ‘UFW_MASTER_PLATFORM=iphoneos’, ‘OTHER_CFLAGS=”-fembed-bitcode”‘, ‘install’]’ returned non-zero exit status 65
Command /bin/sh failed with exit code 1`