iOS Question Local Builder x64 Intel

tucano2000

Active Member
Licensed User
Longtime User
Does Local Builder still work with x64 Intel?

I had a 2024 version and haven't used it in a while. Now, with the newer version, I tried to compile my application on a Mac with an x64 processor and it can't find icore.h and other key system files.

When I looked at the current libs folder, it's very different, and everything is inside folders that only have the libs for ARM, so I don't know what to do.
 

tucano2000

Active Member
Licensed User
Longtime User
I changed the XCode version from 26.3 to 26.0, but the error persisted.
Then I managed to compile successfully, but I had to remove the iAlertView library from my app and comment out the part of the code that used it.
I tried copying the iAlertView.h and iAlertView.a files directly to the Libs folder of B4iBuildServer, but I also got an error saying that iAlerView.h could not be found.

Is there a newer version of it, or how can I make it work properly?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I tried copying the iAlertView.h and iAlertView.a files directly to the Libs folder of B4iBuildServer
The header file needs to be updated. The import line where iCore is imported should be changed to:
#import <iCore/iCore.h>

Attached a modified header.
 

Attachments

  • iAlertView.h
    2.7 KB · Views: 3
Upvote 0

tucano2000

Active Member
Licensed User
Longtime User
Ok Erel. That error is gone, but now I'm getting another error with FCAlertView.h, which also has the same header.

So I modified it like you did in iAlertView.h and changed the header in FCAlertView.h.

The error also disappeared, but a new error appeared when trying to compile for the Simulator:
ld: warning: ignoring duplicate libraries: '-lc++'
ld: building for 'iOS-simulator', but linking in object file (/Users/tucano/Documents/B4iBuildServer/Libs/libiAlertView.a[arm64][2](FCAlertView.o)) built for 'iOS'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I asked chatgpt and it said that it used to work because they were fat binary libs and XCode was more permissive about running lib arm64 on simulator x64. Now I have to compile to .xcframework if I want to use it on simulator x64.


Is that information correct? But I don't even know how to do that if it's true.
 

Attachments

  • FCAlertView.h
    5.9 KB · Views: 2
Last edited:
Upvote 0
Top