Viktor,
Many thanks for your help, you have all my support, lets see if we can
get it :-)
We need to build two versions of Harbour, one for the real devices and
another one for the simulators. Lets start with the simulator version
as we don't need a certificate, a provisioning profile, etc. for
making tests.
Please note that gcc automatically calls llvm-gcc, so we can simply
call gcc:
main.m is going to be compiled:
CompileC /Users/anto/Library/Developer/Xcode/DerivedData/test-
hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Intermediates/test.build/Debug-
iphonesimulator/test.build/Objects-normal/i386/main.o test/main.m
normal i386 objective-c com.apple.compilers.llvmgcc42
cd /Users/anto/Desktop/test
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
llvm-gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -
std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-
variable -DDEBUG=1 -isysroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -
fexceptions -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-
abi-version=2 -fobjc-legacy-dispatch -
D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -I/Users/anto/Library/
Developer/Xcode/DerivedData/test-hkfkcnjkfrlcqqbqqousxdlbzfta/Build/
Intermediates/test.build/Debug-iphonesimulator/test.build/test.hmap -I/
Users/anto/harbour/include -I/Users/anto/Library/Developer/Xcode/
DerivedData/test-hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Products/Debug-
iphonesimulator/include -I/Users/anto/Library/Developer/Xcode/
DerivedData/test-hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Intermediates/
test.build/Debug-iphonesimulator/test.build/DerivedSources/i386 -I/
Users/anto/Library/Developer/Xcode/DerivedData/test-
hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Intermediates/test.build/Debug-
iphonesimulator/test.build/DerivedSources -F/Users/anto/Library/
Developer/Xcode/DerivedData/test-hkfkcnjkfrlcqqbqqousxdlbzfta/Build/
Products/Debug-iphonesimulator -include /Users/anto/Library/Developer/
Xcode/DerivedData/test-hkfkcnjkfrlcqqbqqousxdlbzfta/Build/
PrecompiledHeaders/test-Prefix-fgmfxfkepvcorsatkeutyqcnrdtt/test-
Prefix.pch -c /Users/anto/Desktop/test/test/main.m -o /Users/anto/
Library/Developer/Xcode/DerivedData/test-hkfkcnjkfrlcqqbqqousxdlbzfta/
Build/Intermediates/test.build/Debug-iphonesimulator/test.build/
Objects-normal/i386/main.o
The link process:
Ld /Users/anto/Library/Developer/Xcode/DerivedData/test-
hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Products/Debug-iphonesimulator/
test.app/test normal i386
cd /Users/anto/Desktop/test
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/
Users/anto/Library/Developer/Xcode/DerivedData/test-
hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Products/Debug-iphonesimulator -L/
Users/anto/Desktop/test/../../Downloads -L/Users/anto/Desktop/
test/../../fivephone/lib -L/Users/anto/Desktop/test/../../harbour/lib -
F/Users/anto/Library/Developer/Xcode/DerivedData/test-
hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Products/Debug-iphonesimulator -
filelist /Users/anto/Library/Developer/Xcode/DerivedData/test-
hkfkcnjkfrlcqqbqqousxdlbzfta/Build/Intermediates/test.build/Debug-
iphonesimulator/test.build/Objects-normal/i386/test.LinkFileList -
mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -
framework AudioToolbox -lfivephone -framework UIKit -framework
Foundation -framework CoreGraphics -lharbour -o /Users/anto/Library/
Developer/Xcode/DerivedData/test-hkfkcnjkfrlcqqbqqousxdlbzfta/Build/
Products/Debug-iphonesimulator/
test.app/test
Please let me know if you need something else. Thanks,
Antonio