I'm stumped.

User avatar
sarossell
Posts: 195
Joined: Sat Nov 05, 2016 6:31 pm
My devices: iPad Mini 2, iPhone 5, MacBook Air, MacBook Pro
Flag: United States of America
Contact:

I'm stumped.

Post by sarossell »

I've read and re-read the instructions for Adding smart BASIC to Xcode and have attempted to build the turtle example three times now from scratch and have had no luck. I have tried renaming the libSB-dev/sim files to libSB.a and even tried just using the existing libSB.a file. Still, no luck. I have read through the forums completely at least twice for a solution but I still cannot get past this error:

ld: warning: ignoring file /Users/SAR/Workarea2/Turtle/libSB.a, file was built for archive which is not the architecture being linked (i386): /Users/SAR/Workarea2/Turtle/libSB.a

I've tried using the clean function between attempts or just started all over again with new files. I've deleted all files from the derived data folder in /Users/SAR/Library/Developer/Xcode/DerivedData/and then started over again.

Any help would be greatly appreciated. I'm running Xcode 8.1 (8B62) in macOS Sierra on a mid-2011 MacBook Air.

I DO NOT have an Apple developer's license yet, but I was under the impression I could build apps for the simulator.

Thank you. {:@)
smart BASIC Rocks!
Last edited by sarossell on Fri Nov 25, 2016 2:40 am, edited 2 times in total.
smart BASIC Rocks!

- Scott : San Diego, California

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

Re: I'm stumped.

Post by Mr. Kibernetik »

Thank you very much for your report!

You are right, libraries were incorrect.
Now they are updated, please re-download the SDK.

User avatar
sarossell
Posts: 195
Joined: Sat Nov 05, 2016 6:31 pm
My devices: iPad Mini 2, iPhone 5, MacBook Air, MacBook Pro
Flag: United States of America
Contact:

Re: I'm stumped.

Post by sarossell »

Error.png
Error.png (187.87 KiB) Viewed 4532 times
Thanks you SO very much for such a quick response and update. Sadly, after using the new downloaded BASIC SDK template, I'm still seeing an error. Please see image.
smart BASIC Rocks!

- Scott : San Diego, California

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

Re: I'm stumped.

Post by Mr. Kibernetik »

Not sure what it can be.
Please try to set General > Identity > Team = "None" as on this screenshot.
Снимок экрана 2016-11-23 в 12.48.52.png
Снимок экрана 2016-11-23 в 12.48.52.png (148.98 KiB) Viewed 4530 times

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

Re: I'm stumped.

Post by Mr. Kibernetik »

Also try to set Build Settings > Code Signing = "Don't Code Sign" as on this screenshot:
Снимок экрана 2016-11-23 в 13.05.22.png
Снимок экрана 2016-11-23 в 13.05.22.png (227.25 KiB) Viewed 4527 times

User avatar
sarossell
Posts: 195
Joined: Sat Nov 05, 2016 6:31 pm
My devices: iPad Mini 2, iPhone 5, MacBook Air, MacBook Pro
Flag: United States of America
Contact:

Re: I'm stumped.

Post by sarossell »

Again, than you for a quick response. I tried both suggestions, but they did not resolve the issue. However, I did find a solution. Apparently, Xcode 8 and macOS Sierra have been security "hardened". This article explains it: https://developer.apple.com/library/con ... index.html

I used the xattr -cr command as suggested, and the build finally succeeded. I have no idea how to prevent this from being an issue in the future, but I suspect you might.

Now, I just have to figure out how to run it in the iPhone 5 simulator.... :@(
smart BASIC Rocks!

- Scott : San Diego, California

User avatar
sarossell
Posts: 195
Joined: Sat Nov 05, 2016 6:31 pm
My devices: iPad Mini 2, iPhone 5, MacBook Air, MacBook Pro
Flag: United States of America
Contact:

Re: I'm stumped.

Post by sarossell »

Also, apparently the AppIcon asset needs to be updated with an image for iOS 9 and above.
Attachments
icon.png
icon.png (230.66 KiB) Viewed 4514 times
smart BASIC Rocks!

- Scott : San Diego, California

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

Re: I'm stumped.

Post by Mr. Kibernetik »

Thank you for this information.
I am using older version of macOS and Xcode 7, so everything is simpler :D

I updated SDK, please try it.

User avatar
sarossell
Posts: 195
Joined: Sat Nov 05, 2016 6:31 pm
My devices: iPad Mini 2, iPhone 5, MacBook Air, MacBook Pro
Flag: United States of America
Contact:

Re: I'm stumped.

Post by sarossell »

Success! The updated SDK worked a treat after accepting some automatic parameter change suggestions (apparently Xcode 8 does not support development for anything older than iOS 8). Build functioned without any problems and zero errors. The iPhone 5 simulator runs like a cheeseburger-fed American on my five year old MacBook Air, but the compiled app was responsive and functional.

Well done! smart BASIC is amazing.
Attachments
success.png
success.png (432.29 KiB) Viewed 4503 times
smart BASIC Rocks!

- Scott : San Diego, California

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

Re: I'm stumped.

Post by Mr. Kibernetik »

Thank you very much for your feedback!

Post Reply