Hi.
I'm trying to build some software written in C on a Mac (a Mac Mini to be specific) such that the software can be used with iOS running on an ARM chip. The Mac is running OS X v10.10.5, and it has Xcode v7.2.1 installed.
Building the software as static libraries seems to work fine. But when the build tries to build dynamic libraries, I'm seeing this error:
ld: library not found for -ldylib1.10.5.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The build is specifying an -isysroot qualifier with this as the value:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
There is a file named dylib1.10.5.o in this directory:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib
But there is no such file in what I guess would be the corresponding directory for the iPhone:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
In both directories there is a file named simply dylib1.o. In the first directory above this dylib1.o file is the same size as the dylib1.10.5.o file. Can I just copy dylib1.o to dylib1.10.5.o in the iPhone directory?