标签: ios10

传输安全性阻止了明文HTTP

info.plist根据以下错误消息,我需要在我的设置中启用HTTP模式?

传输安全性阻止了明文HTTP(http://)资源加载,因为它不安全.可以通过应用程序的Info.plist文件配置临时例外.

Xcode中

假设我的域名是example.com.

xcode ios ios9 app-transport-security ios10

1425
推荐指数
23
解决办法
74万
查看次数

隐藏奇怪的不需要的Xcode日志

使用Xcode 8+并创建新的空白项目时,运行应用程序时会显示以下日志:

2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, enable_level: 0, persist_level: 0, propagate_with_activity: 0
2016-06-13 16:33:34.406323 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.409564 TestiOS10[8209:100611] subsystem: com.apple.UIKit, category: HIDEvents, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 16:33:34.504117 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.548023 TestiOS10[8209:100607] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 …
Run Code Online (Sandbox Code Playgroud)

xcode logging ios ios10 xcode8

676
推荐指数
12
解决办法
18万
查看次数

CGRectMake,CGPointMake,CGSizeMake,CGRectZero,CGPointZero在Swift中不可用

将代码转换为最新的swift 3.0后,我显示此错误.

在此输入图像描述在此输入图像描述

还告诉我解决方案 CGSize = CGSizeMake(0,0)

static var frameAtStartOfPan: CGRect = CGRectZero
static var startPointOfPan: CGPoint = CGPointZero
Run Code Online (Sandbox Code Playgroud)

哪个也不可用.

uikit swift3 ios10 xcode8

237
推荐指数
7
解决办法
16万
查看次数

PLBuildVersion类在两个框架中实现

iOS 10/Xcode 8 GM构建得到以下,从未在Xcode 7上使用过.任何想法?

objc [25161]:类PLBuildVersion在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices(0x12049a910)中实现和/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices(0x1202c4210).将使用两者之一.哪一个未定义.

(注意:似乎只在模拟器中发生,不会出现在真实设备上).

xcode ios10 xcode8

224
推荐指数
5
解决办法
7万
查看次数

Xcode错误:SDK"iOS 10.0"中的产品类型"应用"需要代码签名

我在OS X El Capitan上安装了Xcode 8.

我收到此错误:

签署"目标"需要开发团队.在项目编辑器中选择一个开发团队.

SDK"iOS 10.0"中的产品类型"应用"需要代码签名

Xcode截图

xcode code-signing ios ios10 xcode8

219
推荐指数
12
解决办法
24万
查看次数

错误ITMS - 包中找到90167号应用程序包

在我开始撰写有关错误的文章之前,我正在运行macOS Sierra并使用Xcode 7.3.1.

因此,我正在从我的应用程序创建存档,我验证应用程序并通过验证,但在上传到App Store时,我收到错误"错误ITMS - 包中找到的90167号应用程序包".

我检查了所有文档,但我拥有一切.

  • 我有我所有的配置文件.
  • 我发布为"iOS发行版".

我安装macOS Sierra后才出现此错误.

任何人都知道我为什么会收到这个错误?

提前致谢.

xcode7 ios10 macos-sierra

160
推荐指数
9
解决办法
5万
查看次数

禁用视口缩放iOS 10+ safari?

我已经更新我的iPhone 6加至10的iOS beta版本,只是发现,在移动Safari浏览器,您可以通过双击放大任何网页或捏忽略user-scalable=no在meta标签代码.我不知道这是一个错误或功能.如果它被视为一项功能,我们如何禁用视口缩放iOS 10 Safari?


在iOS 11/12发布,iOS 11和iOS 12 safari上更新仍然尊重user-scalable=no元标记.

Safari上的移动github网站

mobile-safari viewport ios10 ios11 ios12

149
推荐指数
13
解决办法
11万
查看次数

在Xcode 8/Swift 3.0中注册推送通知?

我正在尝试让我的应用程序在Xcode 8.0中运行,并且遇到了错误.我知道这个代码在以前版本的swift中运行良好,但我假设在新版本中更改了代码.这是我正在尝试运行的代码:

let settings = UIUserNotificationSettings(forTypes: [.Sound, .Alert, .Badge], categories: nil)     
UIApplication.sharedApplication().registerUserNotificationSettings(settings)
UIApplication.shared().registerForRemoteNotifications()
Run Code Online (Sandbox Code Playgroud)

我得到的错误是"参数标签"(forTypes:,categories :)'与任何可用的重载都不匹配"

是否有一个不同的命令,我可以尝试使其工作?

push-notification ios swift3 ios10 unusernotificationcenter

116
推荐指数
7
解决办法
10万
查看次数

如何在iOS 10上使用Facebook iOS SDK

我正在尝试使用Xcode 8来构建一个使用Swift 3登录Facebook的应用程序.当我切换回iOS模拟器9.3时,它可以工作.在iOS 10中,我收到此错误:

""fbauth2:/" The operation couldn’t be completed. (OSStatus error -10814.)"
Run Code Online (Sandbox Code Playgroud)

Optional(Error Domain=com.facebook.sdk.login Code=308 "(null)")
Run Code Online (Sandbox Code Playgroud)

有人有解决方案吗?

注1:

调试后,这个问题是FBSDK无法更新expect_challange.功能SecItemUpdate里面security.framework不行.这是IOS 10的问题

ios facebook-ios-sdk swift ios10

103
推荐指数
2
解决办法
4万
查看次数

使用UIImagePickerController时iOS 10错误[access] <private>

我正在使用XCode 8并使用iOS 10.2 Beta进行测试.

我已将Photos,PhotosUI和MobileCoreServices框架添加到项目中.

非常简单的代码:

#import <Photos/Photos.h>
#import <PhotosUI/PhotosUI.h>
#import <MobileCoreServices/MobileCoreServices.h>

@interface ViewController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate, PHLivePhotoViewDelegate>

@property (strong, nonatomic) IBOutlet UIImageView *imageview;

@end
Run Code Online (Sandbox Code Playgroud)

和实施:

- (IBAction)grab:(UIButton *)sender{
    UIImagePickerController *picker = [[UIImagePickerController alloc]init];
    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    picker.allowsEditing = NO;
    picker.delegate = self;

    // make sure we include Live Photos (otherwise we'll only get UIImages)
    NSArray *mediaTypes = @[(NSString *)kUTTypeImage, (NSString *)kUTTypeLivePhoto];
    picker.mediaTypes = mediaTypes;

    // bring up the picker
    [self presentViewController:picker animated:YES completion:nil];
}
Run Code Online (Sandbox Code Playgroud)

一旦我点击按钮,应用程序崩溃时出现非常无用的错误:

[access] <private>

而已.没有其他的. …

objective-c uiimagepickercontroller ios presentviewcontroller ios10

102
推荐指数
5
解决办法
6万
查看次数