ld: library not found for -lcrt1.3.1.o error while running app in device with xcode 8.0 with iOS10

Sandip Patel - SM picture Sandip Patel - SM · Sep 22, 2016 · Viewed 9k times · Source

After upgrading xcode to 8.0, my application project build with error for device target but building successfully for simulator.

Error is like:
ld: library not found for -lcrt1.3.1.o

What does the solution for this error.

Answer

Sandip Patel - SM picture Sandip Patel - SM · Sep 22, 2016

After spending lots time, i finally got the reason for this error.

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

Solution: If your project source have deployment target from iOS 5.0 then change it to iOS 6.0 or later and your error will be fix. Now that work fine for device too.

Hurray!!!