Ios 未找到叮当建筑Mac催化剂的UIKit/UIKit.h
我正在使用以下标志为Mac Catalyst构建静态iOS/macOS库:Ios 未找到叮当建筑Mac催化剂的UIKit/UIKit.h,ios,macos,mac-catalyst,Ios,Macos,Mac Catalyst,我正在使用以下标志为Mac Catalyst构建静态iOS/macOS库: clang \ --target=x86_64-apple-ios13-macabi \ -isysroot /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk 这将生成普通源文件,但在以下情况下失败: #if TARGET_OS_IPHONE ||
clang \
--target=x86_64-apple-ios13-macabi \
-isysroot /Applications/Xcode_11.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
这将生成普通源文件,但在以下情况下失败:
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
#import <UIKit/UIKit.h>
#endif
是否需要显式指定UIKit框架?实现此功能的双秘密生成设置包括:
FAT_LIB_MAC_CATALYST_FLAGS = -arch x86_64h \
--target=x86_64-apple-ios13-macabi \
-isysroot $(MACOSX_SDK_DIR) \
-isystem $(MACOSX_SDK_DIR)/System/iOSSupport/usr/include \
-iframework $(MACOSX_SDK_DIR)/System/iOSSupport/System/Library/Frameworks
FAT_LIB_MAC_CATALYST_FLAGS = -arch x86_64h \
--target=x86_64-apple-ios13-macabi \
-isysroot $(MACOSX_SDK_DIR) \
-isystem $(MACOSX_SDK_DIR)/System/iOSSupport/usr/include \
-iframework $(MACOSX_SDK_DIR)/System/iOSSupport/System/Library/Frameworks