I'm unable to port my compile my application using Mac Catalyst. I am using pre compiled static libraries to build my app and I am getting the following error when I build with my Mac (11.6.1):
Users/aksuppal/commons/workspace/gen/output/gen.xcframework:1:1: error: While building for Mac Catalyst, no library for this platform was found in '/Users/aksuppal/commons/workspace/gen/output/gen.xcframework'. (in target 'gen2' from project 'genises')
deployment target: iOS 11.2
default compiler: apple clang
swift language: swift 4
Xcode version: 12.5
Build settings
0657BFAC2876F434DD08D179B /* Release */ = {
buildSettings = {
ARCHS = (
armv7,
x86_64,
arm64
);
MACH_O_TYPE = staticlib;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
"IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 13.1;
SDKROOT = iphoneos
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
SUPPORTS_MACCATALYST = YES;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
TARGETED_DEVICE_FAMILY = "1,2";
SKIP_INSTALL = NO;
};
It compile and run on iphone 9< and iPad 6<.
Reference used : https://developer.apple.com/tutorials/mac-catalyst/turning-on-mac-catalyst
thanks