PJSIP iOS framework封装 编译报错
系统库 Foundation报错 XCode14
错误信息如下
While building module 'Foundation' imported from /Users/vargo-w/Desktop/自定义库/PJSipKit/PJSipKit/PSAccModel.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:657:37: error: use of undeclared identifier 'LONG_MAX'
static const NSInteger NSNotFound = NSIntegerMax;
^
In module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/usr/include/objc/NSObjCRuntime.h:19:25: note: expanded from macro 'NSIntegerMax'
#define NSIntegerMax LONG_MAX
^
While building module 'Foundation' imported from /Users/vargo-w/Desktop/自定义库/PJSipKit/PJSipKit/PSAccModel.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h:404:29: error: use of undeclared identifier 'LONG_MAX'
NSDateComponentUndefined = NSIntegerMax,
^
In module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/usr/include/objc/NSObjCRuntime.h:19:25: note: expanded from macro 'NSIntegerMax'
#define NSIntegerMax LONG_MAX
^
2 errors generated.
In file included from /Users/vargo-w/Desktop/自定义库/PJSipKit/PJSipKit/PSAccModel.m:8:
/Users/vargo-w/Desktop/自定义库/PJSipKit/PJSipKit/PSAccModel.h:9:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
3 errors generated.
错误截图
请大家帮忙看下