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.
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?
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.
Yes on real device works, but I want to test the app totally on simulator to anothers devices models that I don't have.
In any case, if it is not possible, then I will switch to a UiAlertController (Objective C inline) or Msgbox2, even if it does not look very similar to iAlertView.