Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 未找到叮当建筑Mac催化剂的UIKit/UIKit.h_Ios_Macos_Mac Catalyst - Fatal编程技术网

Ios 未找到叮当建筑Mac催化剂的UIKit/UIKit.h

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 ||

我正在使用以下标志为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 || 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