Xcode build error

BASIC SDK для Xcode
Post Reply
alinc
Posts: 4
Joined: Thu Aug 31, 2017 8:17 pm
My devices: ipad, iphone
Flag: United States of America

Xcode build error

Post by alinc »

Xcode build for Turtle succeeds when I use libSB-sim.a, but when I use libSB-dev.a it fails and shows:

ld: warning: ignoring file /Users/jimlincoln/Downloads/Turtle/libSB.a, missing required architecture i386 in file /Users/jimlincoln/Downloads/Turtle/libSB.a (2 slices)

and similar messages.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Xcode build error

Post by Mr. Kibernetik »

These libraries are for different destinations.
Please read notes in instructions: viewtopic.php?f=34&t=726

alinc
Posts: 4
Joined: Thu Aug 31, 2017 8:17 pm
My devices: ipad, iphone
Flag: United States of America

Re: Xcode build error

Post by alinc »

The notes say "Template project "BASIC SDK" contains two libraries: "libSB-dev.a" for running on iOS device and "libSB-sim.a" for running on iOS Simulator."
I wanted to run on my iPad Pro so I renamed "libSB-dev.a" to "libSB.a" Was that wrong?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Xcode build error

Post by Mr. Kibernetik »

This error:

"warning: ignoring file /Users/jimlincoln/Downloads/Turtle/libSB.a, missing required architecture i386 in file /Users/jimlincoln/Downloads/Turtle/libSB.a (2 slices)"

means that you are trying to run your program on iOS Simulator instead of device.
Be sure to select your iPad as an output device in your Xcode. This selector is on the top of Xcode, just to the right of "Run" and "Stop" buttons:

Снимок экрана 2017-09-05 в 2.58.44.png
Снимок экрана 2017-09-05 в 2.58.44.png (75.49 KiB) Viewed 3875 times

Post Reply