XCode 8: Compiling from the command-line for arm32 - ld: library not found for -lcrt1.3.1.o

Hi,


Until XCode 8, the following command-line could be used to compile and link code for iOS:


$ gcc -isysroot ${SDK} a.c -arch armv7


With XCode 8, targeting arm64 works, but targeting armv7 or armv7s yields a linker error:


ld: library not found for -lcrt1.3.1.o


Is there still a way to compile for iOS from the command-line in XCode 8 ?

I had the same problem with xcode 8. I found that changing deployment target from 5.1.1 to 8.0 fixes this problem. What important that removal armv7s from architectures did not help.

XCode 8: Compiling from the command-line for arm32 - ld: library not found for -lcrt1.3.1.o
 
 
Q