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.
Xcode build error
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Xcode build error
These libraries are for different destinations.
Please read notes in instructions: viewtopic.php?f=34&t=726
Please read notes in instructions: viewtopic.php?f=34&t=726
Re: Xcode build error
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?
I wanted to run on my iPad Pro so I renamed "libSB-dev.a" to "libSB.a" Was that wrong?
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Xcode build error
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:
"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: