Posts

Post not yet marked as solved
3 Replies
3.5k Views
I'm trying to create xcframework of j2objc built by make dist.Presumerbly those .a files are compiled as fat library, but built with xCode10 due to compile errors when compile with xCode11.My build environments are xCode11 beta 2 and MacOS 10.5 beta.$ xcodebuild -create-xcframework -library ./lib/libjre_emul.a -library ./lib/macosx/libjre_emul.a -headers ./include/ -output lib/universal/libjre_emul.xcframework error: binaries with multiple platforms are not supported './j2objc/dist/lib/libjre_emul.a'How can I solve this?
Posted
by Owen Jung.
Last updated
.
Post not yet marked as solved
0 Replies
386 Views
Building with xCode 11 and MacOS updated to 10.15 beta.My iOS app project. using custom ios library(has seperated static library project) using j2objc. j2objc generated static libraries for ios and mac is sperately linked as attached as capture. I get an error like this "error: Building for UIKit for Mac, but the linked library 'libjre_emul.a' was built for macOS. You may need to restrict the platforms for which this library should be linked in the target editor.".https://drive.google.com/file/d/10iPJDfDyFGJBwcUSrhB07i7cXnEf8urJ/view?usp=sharinghttps://drive.google.com/file/d/1B7irtrai1vzjsn_o75Y0urqdtHq_NKYr/view?usp=sharingFor referecne, building for iOS working fine. I can run my app in simulator.I have no idea how to change the settings of the app or do something else with it. I attach build setting for the static library project. the project produces .a library file.https://drive.google.com/file/d/17CK59ZjNC0G85fzWdvgKHSn9zjhu07-r/view?usp=sharingThanks.
Posted
by Owen Jung.
Last updated
.