Page 1 of 1

Xcode build error

Posted: Sun Sep 03, 2017 4:36 pm
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.

Re: Xcode build error

Posted: Sun Sep 03, 2017 4:41 pm
by Mr. Kibernetik
These libraries are for different destinations.
Please read notes in instructions: viewtopic.php?f=34&t=726

Re: Xcode build error

Posted: Mon Sep 04, 2017 8:13 pm
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?

Re: Xcode build error

Posted: Mon Sep 04, 2017 10:03 pm
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 3873 times