xcode10.2

Conversion to Swift 5 is available [closed]

▼魔方 西西 提交于 2020-05-29 10:15:49
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I'm getting this warning in Xcode 10.2. Conversion to swift 5 is available When i click this error it's opening this window When we click NEXT what will happen... 回答1: current version of swift is swift5 which only supported in xcode 10.2 and you are using another version like

How to fix cocoapod .modulemap file not found

拜拜、爱过 提交于 2020-03-20 12:35:34
问题 When I try to build my project, I get a compile time error saying that a "Module map file" for my pod cannot be found and that I am missing a "SwiftShimes" module. This is weird because all my modulemap files are where they should be when I install my pods. I am using Xcode 10.2 and Cocoapods 1.6.1. I have tried the following -> deintegrating cocoapods from my project cleaning the project deleted ModuleCache and DerivedData restarting my computer This is the type of error I am getting ->

UIWorkIntervalTiming workIntervalStart

情到浓时终转凉″ 提交于 2020-01-22 04:56:06
问题 Getting console log while scrolling ScrollView . Is there way to remove this? 2019-03-27 12:33:34.109573+0530 MyApp[10465:46241] [UIWorkIntervalTiming] workIntervalStart: startTimestamp > targetTimestamp; rolling forward by 1.116667 回答1: I can observe the same issue with a UICollectionView and UITableView . I suspect it is a diagnostic output used to analyse the scrolling performance. Note: I notice this issue from Xcode 10.2 in UICollectionView if you swapping too much faster than collection

Xcode 10.2 Update issue Build system error -1: Unable to load contents of file list: input/output xcfilelist

☆樱花仙子☆ 提交于 2019-12-18 12:45:33
问题 After upgrading to Xcode 10.2 I am getting 2 errors :-1: Unable to load contents of file list: 'xxxxx/Pods/Target Support Files/Pods-xxxx/Pods-xxxxx-frameworks-Debug-input-files.xcfilelist' (in target 'xxxxx') :-1: Unable to load contents of file list: 'xxxxx/Pods/Target Support Files/Pods-xxxxx/Pods-xxxxx-frameworks-Debug-output-files.xcfilelist' (in target 'xxxxx') I updated all my pod and changed build system to "Legacy Build System" but still getting the same build error 回答1: I struggled

Argument labels '(stringInterpolationSegment:)' do not match any available overloads

十年热恋 提交于 2019-12-13 19:34:14
问题 After updating the latest Xcode Version 10.2 (10E125), I am getting this error : Argument labels '(stringInterpolationSegment:)' do not match any available overloads Could not find any solution yet, any idea please ? let interpolation1 = String(stringInterpolationSegment:self.addSpotAnnotation!.coordinate.latitude) let interpolation2 = String(stringInterpolationSegment:self.addSpotAnnotation!.coordinate.longitude) let coordinate:String = interpolation1 + "," + interpolation2 回答1: The error is

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

我们两清 提交于 2019-12-11 14:54:50
问题 The problem started with the XCode 10.2.x as I guess While it was working fine with the XCode 10.1 The crash point is " pdfView.frame = self.view.frame " from below code: import UIKit import PDFKit class ViewController: UIViewController { var pdfView = PDFView() override func viewDidLoad() { super.viewDidLoad() // Prepare document to show let url = Bundle.main.url(forResource: "sample", withExtension: "pdf") let pdfDocument = PDFDocument(url: url!) // PDFView pdfView = PDFView() pdfView.frame

Xcode - how to reset glitched Xcode 10.2 installation?

偶尔善良 提交于 2019-12-11 05:18:52
问题 I'm updating to Xcode 10.2, and have a glitched installation stuck at about 77%. It has been sitting like that for over 30 minutes. Restart did not help - the installation gets stuck again. How to fix glitched/stuck Xcode 10.2 installation process? 回答1: Consider a clean uninstall of everything related to Xcode. Recommend first saving the noted folders (ending in "/") or files as they contain the customizations you have for Xcode: ~/Library/Developer/Xcode/UserData/CodeSnippets/ ~/Library

New Swift 5 warnings for Objective-C enums: how to get rid of them?

空扰寡人 提交于 2019-12-08 19:18:16
问题 As of Xcode 10.2, when using enums I've defined in Objective-C, but in a Swift 5 switch statement, I get the following warning, even if I've exhausted all the possible enum values. Switch covers known cases, but 'MyObjectiveCEnumName' may have additional unknown values Xcode is telling me I should fix this by Handle unknown values using "@unknown default" Why is this happening and what can I do about it? Example Objective-C enum typedef NS_ENUM(NSUInteger, CardColor) { CardColorBlack,

iPhone Increase font size for larger devices

二次信任 提交于 2019-12-06 13:55:55
问题 I have simple app that has some views to show. It is portrait app so I do not have to build any other design for orientation specific. But I have one trouble(Being new on iOS), I have read about size classes and yet I am unable to understand that How I can mange to increase size of a text/Label per device. What I have done: I mean I am testing on following mobiles iPhone 5s iPhone 8plus iPhone XR I have a label inside a view and that label has 18 points as a text size or font size What I want