小编sam*_*ray的帖子

错误:此应用程序是使用 iOS 12.0 SDK 构建的。从 2019 年 3 月开始,所有提交到 App Store 的 iOS 应用程序必须使用 iOS 12.1 SDK 构建

我收到此错误,阻止我上传到 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)
  • 我的 mac 中没有两个 xcode 版本
  • 我检查了 xcodebuild -sdk -version 并且我有 12.1 并且我使用“sudo xcode-select -s /Applications/Xcode.app/Contents/Developer”检查了命令行工具路径

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)

xcode app-store ios app-store-connect

6
推荐指数
1
解决办法
6464
查看次数

如何阻止NSTimer?

我有一个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的答案,但它不起作用:

如何阻止NSTimer

objective-c nstimer ios

3
推荐指数
1
解决办法
130
查看次数

IOS - 如何修复“ld: library not found for -lBolts”错误?

我已经有好几天这个烦人的错误了:

在此处输入图片说明

我试过:删除 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)

xcode objective-c ios cocoapods

3
推荐指数
1
解决办法
1278
查看次数

IOS和目标C - 如何解决此错误"隐式声明函数"class_getname"在c99中无效"?

实际上有两个错误,第一个是:"隐式声明函数"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)

有关如何解决此问题的任何帮助?谢谢

objective-c ios6 xcode6

1
推荐指数
1
解决办法
5840
查看次数

FPDF - 如何使用 Write_html 修复“致命错误:调用未定义的方法 PDF::FPDF()”

我正在使用这个脚本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 文件,有没有办法解决这个错误?谢谢

php fpdf

0
推荐指数
1
解决办法
8056
查看次数