我收到此错误,阻止我上传到 AppStore
ERROR ITMS-90725: "SDK Version Issue.
This app was built with the iOS 12.0 SDK.
All iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later."
Run Code Online (Sandbox Code Playgroud)
xcodebuild -sdk -version 的输出:
iPhoneOS12.1.sdk - iOS 12.1 (iphoneos12.1)
SDKVersion: 12.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk
PlatformVersion: 12.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
BuildID: ...
ProductBuildVersion: 16B91
ProductCopyright: 1983-2018 Apple Inc. …Run Code Online (Sandbox Code Playgroud) 我有一个NSTimer,我希望在我离开时停止vViewVontroller:
计时器是我调用的方法viewWillAppear:
- (void) myMehtod
{
//timer = [[NSTimer alloc] init];
// appel de la methode chaque 10 secondes.
timer = [NSTimer scheduledTimerWithTimeInterval:10.0f
target:self selector:@selector(AnotherMethod) userInfo:nil repeats:YES];
//self.timerUsed = timer;
}
Run Code Online (Sandbox Code Playgroud)
我将方法称为stopTimer viewWillDisappear
- (void) stopTimer
{
[timer invalidate];
timer = nil;
}
Run Code Online (Sandbox Code Playgroud)
PS:我在这个问题上尝试了user1045302的答案,但它不起作用:
我已经有好几天这个烦人的错误了:
我试过:删除 pods 文件夹 & pod 文件 & pod.lock 文件 & .workspace 文件并再次重新安装 pods。删除 pods.xconfig 文件中的所有库搜索路径
这是我的 pod 文件:
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'MyApp' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for MyApp
pod 'Firebase'
pod 'Bolts'
pod 'Firebase/Firestore'
pod 'Google-Mobile-Ads-SDK'
pod 'Fabric'
pod 'Crashlytics'
pod 'PersonalizedAdConsent'
pod 'Highcharts', '~> 6.1.0'
pod 'FBSDKCoreKit' …Run Code Online (Sandbox Code Playgroud) 实际上有两个错误,第一个是:"隐式声明函数"class_getname"在c99中无效"
第二个是:不兼容的整数到指针转换使用类型'int'的表达式初始化'const char*'
我的方法是:
-(void) donneesrecoltees:(NSData *)donnees {
NSError *erreur;
NSNumber *lastMessage,*currentMessage;
//int i;
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
NSString *msg;
UIAlertView *alert;
NSDictionary *json=[NSJSONSerialization JSONObjectWithData:donnees options:0 error:&erreur];
// Check if it's the right class to avoid error stack
// this is the line that is causing the error
const char* className = class_getName([json class]);
NSString *myClass=[NSString stringWithFormat:@"%s",className];
....
}
Run Code Online (Sandbox Code Playgroud)
有关如何解决此问题的任何帮助?谢谢
我正在使用这个脚本http://fpdf.org/en/script/script50.php并且我收到错误:
致命错误:在第 55 行调用 MyPath/html_table.php 中未定义的方法 PDF::FPDF()
正是这个调用FPDF引发了异常:
$this->FPDF($orientation,$unit,$format);
Run Code Online (Sandbox Code Playgroud)
我不明白为什么,知道 pdf 类扩展了 FPDF并且我在与 html_table.php 文件相同的目录中有 fpdf.php 文件,有没有办法解决这个错误?谢谢