Missing required architecture arm64

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Missing required architecture arm64

Post by ikomgmbh » Wed Apr 08, 2020 3:10 pm

Hello,
perhaps it would have been right to post at the topic "Linking Xcode and Livecode". It seems to be a similar problem?

I am new to Livecode and running it on a MiniMac 2018 with macOS Catalina ten fifteen four" (perhaps the problem?).

For every suggested combination of Xcode and Livecode (Xcode "ten one", "eleven three one", "eleven one"., "eleven four" and LiveCode Indy "nine five one", "nine six one" (dp 2), "nine six one" (dp 3)) I get the same following error if trying to save a standalone application:
… linking for arm (arm64) failed with ld: in '/usr/local/lib/libobj A tbd', missing required architecture arm64 in file /usr/local/lib/libobjc A tbd (2 slices) clang:error: linker command failed with exit Code 1...

I would be happy if someone could helps.

Thanks
Jens

Sorry for the numbers. I could not write them in the normal way because the forum software rejected to send it in another form.

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Mon Apr 13, 2020 12:59 pm

I can't get it to run.
I have deleted all versions of XCode on my Mac. Additionally I have the renamed then folder /Library/Developer.

Then I have installed LiveCode 9_6_0 DP-3 and Xode 11_3_1 as told in the FAQs.

Then installation of the Command Line Tools and sudo xcode-select -- switch path_to_xcode

… missing required Architecture arm64 ...

Perhaps someone can help?

Thanks
Jens

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Missing required architecture arm64

Post by LiveCode_Panos » Mon Apr 13, 2020 4:42 pm

Hello Jens,

You might need to install Xcode's additional components. After you reinstalled Xcode, have you opened it? When opening Xcode for the first time, you should be prompted to install Xcode's additional components.

Also, could you post a screenshot of the iOS standalone settings of the stack you are trying to build as an iOS standalone?

Kind regards,
Panos
--

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Tue Apr 14, 2020 9:32 am

Hello,

the additional components are installed.

[img]https://www_directupload_net/file/d/5789/dk787bjn_png_htm[/img]

I hope you can help.

Thank you very much.

Jens

Problem: You can’t post image, email or url links that are external to this domain. Please remove

I have changed . to _

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Missing required architecture arm64

Post by LiveCode_Panos » Tue Apr 14, 2020 10:24 am

Hello Jens,

Could you also post a screenshot of your LiveCode -> Preferences -> Mobile Support?

I was able to reproduce the error you get if I delete the file:

Xcode11.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libobjc.A.tbd

LC needs this file for building the iOS standalone. So it looks like something in your Xcode setup is not correct.

Also, what does this terminal command output?

Code: Select all

xcode-select -p
Kind regards,
Panos
--

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Tue Apr 14, 2020 11:10 am

Hello,

thanks so far. For me that sounds very promising.

Jens

xcode-select -p
-> /Applications/Xcode11_31_app/Contents/Developer

[img]https://www_directupload_net/file/d/5789/7irnqx9d_png_htm[/img]

Because of upload problems of the picture: I have changed . to _

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Tue Apr 14, 2020 11:20 am

Hello,

I have found the file Xcode11_3_1_app/Contents/Developer/Platforms/iPhoneOS_platform/Developer/SDKs/iPhoneOS_sdk/usr/lib/libobjc_A_tbd

But it was a little difficult to do this. At the beginning I cound not use 'cd' to come to the file.
Then I used 'sudo cd' and now ist ok.

Perhaps that helps?

Jens

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Missing required architecture arm64

Post by LiveCode_Panos » Tue Apr 14, 2020 12:05 pm

Hello Jens,

OK, so the required file seems to be there.

I just looked again at your original error:
linking for arm (arm64) failed with ld: in '/usr/local/lib/libobj A tbd ..
This ^^ path has a subfolder named "local", which is not present in the Xcode app bundle. So I am wondering if for some reason LiveCode does not look for this file in the Xcode bundle, but instead first it looks at your "/usr/local/lib/" folder.

Could you try the following:

Open Finder and choose "Go" -> "Go to Folder" and enter "/usr/local/lib/". Then check if a file libobjc.A.tbd is there, and if yes, rename it to "OLD_libobjc.A.tbd_OLD" (or remove it). Then restart LC, and check if you still get that error.

Kind regards,
Panos
--

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Tue Apr 14, 2020 12:42 pm

Hello,

it seems not so good: A Long list of Errors:

[img]https://www_directupload_net/file/d/5789/ikdfxa7z_png_htm[/img]

:(
Jens

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Tue Apr 14, 2020 12:44 pm

At the end:

ld: Symbol(s) not found for architecture arm64

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Missing required architecture arm64

Post by LiveCode_Panos » Tue Apr 14, 2020 12:57 pm

Hello Jens,

hmm that's strange. Definitely something related to the Xcode installation.

- Just to confirm, can you open Xcode without any errors?
- if you open Xcode and go to Xcode -> Preferences -> Locations, do you see "Xcode 11.3.1" in the "command line tools" dropdown?
- What are the contents of your /Library/Developer/ folder?

Kind regards,
Panos
--

PS: Once you reach 10 posts, you will be able to attach images and post links without any problems

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Tue Apr 14, 2020 1:07 pm

Hello,

no problems with opening XCode.

XCode -> Preferences -> Locations: Command Line Tools XCode 11.3.1 (11C505)

/Library/Developer/

Dir CommandLineTools
Dir CoreSimulator
Dir Private Frameworks
Libraray_Developer -> Picture

[img]https://www_directupload_net/file/d/5789/43sqwdjy_png_htm[/img]

For me it seems that the SDK is missing?

Jens

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Missing required architecture arm64

Post by LiveCode_Panos » Tue Apr 14, 2020 2:04 pm

Hmm, I have a slightly different structure, but I am on MacOS Mojave:
Screenshot 2020-04-14 at 15.56.01.png
Where does your "MacOSX.sdk" alias point to?

I remember that at some point I had to install the MacOS Mojave headers by running this command:

Code: Select all

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Maybe you could try that too - or modify this for MacOS 10.15?

I am starting to run out of ideas. I know that several LC users are on Catalina and can build iOS apps with Xcode 11.3.1, so it is very strange why you get these errors.

Kind regards,
Panos
--

ikomgmbh
Posts: 16
Joined: Wed Apr 08, 2020 2:52 pm

Re: Missing required architecture arm64

Post by ikomgmbh » Tue Apr 14, 2020 3:09 pm

Hello,

the MacOSX.sdk points to the MacOSX10.15.sdk

If I try to install I always get: 'The package path specified was invalid'

I had uninstalled all versions of XCode and then installed XCode 11.3.1.

I had not uninstalled Livecode? Perhaps I should uninstall erverything and then install Xcode 11.3.1 und then Livecode?

Thank you very much
Jens

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Missing required architecture arm64

Post by LiveCode_Panos » Tue Apr 14, 2020 3:19 pm

Hello Jens,

Are you trying to install the MacOS 10.14 headers, or the 10.15 ones? I am not sure which is the path for the 10.15 ones. If you get this error when trying to install the 10.14 ones, you might need to create the folder "Packages" manually first.

You do not need to uninstall LiveCode, but it would be a good idea to uninstall Xcode 11.3.1 and then reinstall it. You can download it directly from Apple's downloads page:

http://developer.apple.com/download/more/

Kind regards,
Panos
--

Post Reply

Return to “iOS Deployment”