Tag: ios9

dyld:未find符号:___NSDictionary0__在XCode 7和iOS目标9.0中使用带有发现文档的Google ServiceGenerator二进制文件

我正尝试使用Google serviceGenerator以发现文档作为input,从Google后端生成客户端API代码。 以下是确切的命令: /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator ./userRecordApi-v1-rpc.discovery –outputDir ~/API 我然而,看到以下错误 dyld: Symbol not found: ___NSDictionary0__ Referenced from: /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator (which was built for Mac OS X 10.11) Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation in /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator Trace/BPT trap: 5 任何帮助将不胜感激。 谢谢,拉贾。

UIDocumentMenuViewController在iPad上崩溃,但不在iPhone上

演示一个UIDocumentMenuViewController ,以便能够将文件加载到应用程序中。 在iPhone上,它的作品,但不是在iPad上。 使用iOS9。 任何想法是什么错误? dmvc = UIDocumentMenuViewController(documentTypes: ["public.data"], inMode: .Import) dmvc!.delegate = self dmvc!.popoverPresentationController?.sourceView = addSongButton self.presentViewController(dmvc!, animated: true, completion: nil) 2016-06-07 09:45:45.256记住[2994:977408] UICollectionViewFlowLayout的行为没有定义,因为:2016-06-07 09:45:45.260记住[2994:977408]物品宽度必须小于UICollectionView的宽度减去左侧和右侧的值,减去内容左右值。 2016-06-07 09:45:45.261记住[2994:977408]相关的UICollectionViewFlowLayout实例是<_UIAlertControllerCollectionViewFlowLayout:0x1668e6e0>,它被附加到; animation= {bounds.origin =; bounds.size =; 位置=; }; 层=; contentOffset:{0,0}; contentSize:{0,0}>集合视图布局:<_UIAlertControllerCollectionViewFlowLayout:0x1668e6e0>。 2016-06-07 09:45:45.262记住[2994:977408]在UICollectionViewFlowLayoutBreakForInvalidSizes中创build一个符号断点,以在debugging器中捕获这个断点。 我不明白为什么错误消息引用collectionView ? 我根本不使用collectionView。 也许UIDocumentMenuViewController有它作为内部组件?

如何在Safari中redirect到ios设置在ios9中使用javascript

我想知道如何redirect到Safari的iOS设置。 我在一个网站上看到了这个:我在Safari中打开了这个网站,并且有一个button,当我点击这个button时,它可以redirect到iOS设置。 我认为这可以通过JavaScript来实现。 有谁知道如何做到这一点? 注意:我正在使用iOS9。

URLSession didCompleteWithError无错误

在一个在NSURLSessionDelegate控制器中做后台URLSession的IOS9应用程序上工作。 这是我如何开始它: self.session_data = [[NSMutableData alloc] init]; NSURL *url = [NSURL URLWithString:src]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; NSURLSessionConfiguration *backgroundConfigObject = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier: @"myBackgroundSessionIdentifier"]; self.session = [NSURLSession sessionWithConfiguration: backgroundConfigObject delegate: self delegateQueue: [NSOperationQueue mainQueue]]; self.download = [self.session dataTaskWithRequest: request ]; [self.download resume]; 到现在为止还挺好。 我实现了三个委托方法。 “didReceiveData”被首先调用,并存储数据。 – (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveData:(NSData *)data{ NSLog(@"%s",__func__); [self.session_data appendData:data]; } […]

为UITableView节标题返回CGFloat.leastNormalMagnitude会导致崩溃

我做了一个iOS 8的应用程序,使用分组的UITableView作为它的一个页面。 其中有多个部分使用CGFloat.leastNormalMagnitude (或Swift 2及以下的CGFloat.min )作为部分页眉和页脚高度来删除“默认”空间。 一切都很顺利,直到应用程序运行在iOS 9和10,它崩溃的这个错误: 终止应用程序由于未捕获的exception“NSInternalInconsistencyException”,原因:“节标题高度不得为负 – 节0提供的高度是-0.00000' 不知何故, 1任何值(除了舍入的0 )都被视为负数 – 使用1作为返回值将使页眉/页脚空间再次出现。 有没有解决这个问题的方法? 提前致谢。

为什么NSURLSession比浏览器返回不同的响应呢?

任何想法为什么NSURLSession返回这个响应: 您提供的授权types不受支持。 只支持Basic和OAuth let username = "8r6nibK8Pe28WFhjTX1gGb1Rhhhc7xM02v7XKRPedL4" let password = "8r6nibK8Pe28WFhjTX1gGb1Rhhhc7xM02v7XKRPedL4" let loginString = NSString(format: "%@:%@", username, password) let loginData: NSData = loginString.dataUsingEncoding(NSUTF8StringEncoding)! let base64LoginString = loginData.base64EncodedStringWithOptions(.Encoding64CharacterLineLength) let config = NSURLSessionConfiguration.defaultSessionConfiguration() let authString = "Basic \(base64LoginString)" config.HTTPAdditionalHeaders = ["Authorization" : authString] let url = NSURL(string: "https://api.datamarket.azure.com/Bing/Search/Image?$format=json&Query='Rambo'+'Oscar'") let request = NSMutableURLRequest(URL: url!) request.HTTPMethod = "POST" let […]

库没有find-lCloudinary

每当我从pod添加库时都没有find库 。 我已经从terminal添加了吊舱。 错误: ld:找不到-lCloudinary的库 铿锵声:错误:链接器命令失败,退出代码1(使用-v调用)

我们如何在一个应用程序中使用HTTP和HTTPS两种ATS(应用程序传输安全性)?

苹果公司针对iOS 9和OSX 10.11 El Capitan宣布了“App Transport Security”。 iOS 9的“iOS 新增function ”指南解释说: 应用程序传输安全性(ATS)允许应用程序向其Info.plist文件添加声明,以指定需要安全通信的域。 ATS防止意外泄露,提供安全的默认行为,并且易于采用。 您应该尽快采用ATS,无论您是创build新应用还是更新现有应用。 如果我们想删除或禁用ATS意味着我们只想使用HTTP,那么我们在.plist文件中进行input,如下所示: <key>NSAppTransportSecurity</key> <dict> <!–Include to allow all connections (DANGER)–> <key>NSAllowsArbitraryLoads</key> <true/> </dict> 如果我们的域名在HTTPS中,我们正在进入.plist文件,如下所示: <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>yourserver.com</key> <dict> <!–Include to allow subdomains–> <key>NSIncludesSubdomains</key> <true/> <!–Include to allow HTTP requests–> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> <!–Include to specify minimum TLS version–> <key>NSTemporaryExceptionMinimumTLSVersion</key> <string>TLSv1.1</string> </dict> […]

Tableview不能使用静态数据平滑滚动

我使用静态图像和footerView自定义cell和headerView ,但不滚动,它应该滚动的顺利,它被卡在中间,然后滚动…….. 头 -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{ UIView *headerview = [[UIView alloc]init]; if (section == 2) { headerview.frame = CGRectMake(0, 30, tableView.frame.size.width, 117); Button = [[UIButton alloc]initWithFrame:CGRectMake(0, 18, headerview.frame.size.width, 100)]; UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(5, 0, tableView.frame.size.width, 17)]; label.text = @"Siddharth and hiren Like this"; label.font = [UIFont systemFontOfSize:10]; label.textColor = [UIColor blackColor]; [headerview addSubview:label]; […]

在Swift 2中使用'kGMSMarkerAnimationPop'错误

我有一个错误,而试图animation的GMSMarker,我跟着谷歌文档和各种指南,但它不断返回一个错误,下面是我的代码: func placeMarker(coordinate: CLLocationCoordinate2D) { if locationMarker != nil { locationMarker.map = nil } locationMarker = GMSMarker(position: coordinate) locationMarker.icon = GMSMarker.markerImageWithColor(purple) locationMarker.appearAnimation = kGMSMarkerAnimationPop locationMarker.snippet = "The best place on earth." locationMarker.map = mapView } 哪个返回错误使用'kGMSMarkerAnimationPop' 任何帮助将appriciated!