huggie
huggie

Reputation: 18247

Running on a real device (iPhone) linker error for an archive file

I'm using CorePlot in my project by adding the project file directly in the project. When I compile it for simulator it is fine, but when I try to compile it for the real device it says:

"clang: error: no such file or directory: 
'/Users/t2wu/Library/Developer/Xcode/DerivedData/HRM-fqohcvzyvosuqmerfynaixyulpta/Build/Products/Debug-iphoneos/libCorePlot-CocoaTouch.a'"

What could be the problem? I'm using iPhone 4S with iOS 6 SDK with architecture set to Standard(armv7, armv7s) for both the super project and the embedded CorePlot.

Upvotes: 0

Views: 254

Answers (2)

Amit Bobade
Amit Bobade

Reputation: 226

In Target Project Build Setting Make Buidl Architecture Only = YES. This will solve your problem.

Upvotes: 1

DJB
DJB

Reputation: 867

Clang is the compiler. Make sure you have a libCorePlot-CocoaTouch.a file in your project.

Upvotes: 0

Related Questions