xcode9

Can't use safe areas in Xcode 9 after upgrading minimum deployment target to iOS 9

空扰寡人 提交于 2019-12-03 05:00:38
I have just changed my app from supporting iOS 8 and up to supporting iOS 9 and up. I believe I've done this properly, since when I now build my app, I'm getting warnings for everything in the app which was deprecated in iOS 9. I am using Xcode 9, GM seed. The problem is that I cannot enable the "Use Safe Area Layout Guides" toggle in any of my storyboards. When I do, I get a warning "Safe Area Layout Guide before iOS 9.0". Is there some additional setting that I need to update? A clean and build did not fix the problem. Just deselect " Use Safe Area Layout Guides " option, which should fix

100+ “Class implemented in both MapKit and VectorKit” warnings with Xcode 9.0.1 and above

心已入冬 提交于 2019-12-03 04:43:16
问题 While running my project (which doesn't even use MapKit ), my console gets spammed with more than a hundred class duplicate warnings: objc[6377]: Class ___MKPlaceBusinessInfoItemAccessibility_super is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/MapKit.axbundle/MapKit (0x12f128f00) and /Applications/Xcode.app/Contents

Autoresizing not working in iOS11 / XCode 9

自闭症网瘾萝莉.ら 提交于 2019-12-03 04:18:20
It appears that the Autoresizing of views is no longer reliably working when building for iOS11 with XCode 9. The layout of several views end up with the positioning of controls as they are in the XIB, but the appropriate resizing has not happened. This has been working fine in iOS10, and works with our old app running in iOS11. However, rebuilding the app the positioning and sizing fails. Has something changed that impacts the use of autoresizingmask ? Is there a way to automatically convert from AutoResizing to AutoLayout and Constraints ? Edit: The controls that are giving trouble are the

Where is my app document folder in Xcode 9 simulator

≡放荡痞女 提交于 2019-12-03 04:07:55
Where is my app document folder in Xcode 9 simulator? I tried the old answers for Xcode 8, it's not there. And why Apple makes it so difficult to see the sandbox of our apps in simulator? I found it in the following path. ~/Library/Developer/CoreSimulator/Devices/(SIMULATORID)/data/Containers/Data/Application/(APPLICATIONID) You can also look into this application for more details. List of simulator devices can be found in the below path: ~/Library/Developer/CoreSimulator/Devices/ Below file has simulator information: ~/Library/Developer/CoreSimulator/Devices/{UUID}/device.plist simctl is the

Time profiler in instruments is not working

China☆狼群 提交于 2019-12-03 03:25:23
问题 I recently update my Xcode to version 9.3, so is instruments. After that, time profiler won't work anymore, it usually works fine before. I tried to run it via Xcode, and I tried to run it manually. Doesn't work. The life cycle row stuck in initializing, and I got a bunch of warnings complain about the data volume is too high for a recording mode of "immediate" and some data had to be dropped to move forward . Then I switch to delay mode, still got nothing. Then I create a simple new project,

How to quit or close single simulator from opened multiple simulator in Xcode 9?

怎甘沉沦 提交于 2019-12-03 01:32:44
问题 I run multiple simulator and I need to close one of them. How can i do this? Because I tried to close it like we does in older version of Xcode but can't close. 回答1: Select Simulator.. Go into File Menu -> Close window or press [Command + W ]. It will close the simulator which is on top . Go into Windows menu -> uncheck Show Device Bezels. Then you can close using red cross icon on simulator. 回答2: There are two ways to close particular Simulator form Multiple simulators Long-press power

how can i put these print text into Textfield?

假如想象 提交于 2019-12-03 01:21:47
问题 UNUserNotificationCenter.current().getPendingNotificationRequests { DispatchQueue.main.async{//Contextual closure type '() -> Void' expects 0 arguments, but 1 was used in closure body let str:String = "" self.finalresulter.text = str self.finalresulter.text = "\($0.map{$0.content.title})" } } 回答1: You are using $0 inside async { } closure. This closure expects no arguments, which means using $0 argument shortcut is invalid. You are evidently attempting to refer to requests array from

Swift 4 ,must be used from main thread only warning

爱⌒轻易说出口 提交于 2019-12-03 01:12:41
When I using Swift4 in Xcode 9 gives me UIApplication.delegate must be used from main thread only .... must be used from main thread only UI API called from background thread Group Purple Warning. My codes; var appDelegate = UIApplication.shared.delegate as! AppDelegate public var context = (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext let prefs:UserDefaults = UserDefaults.standard var deviceUUID = UIDevice.current.identifierForVendor!.uuidString Warning line is; public var context = (UIApplication.shared.delegate as! AppDelegate).persistentContainer

This bundle is invalid - Your archive contains paths that are not allowed: ( “AppThinning.plist” )

三世轮回 提交于 2019-12-03 00:57:38
We made an archive with Xcode 9. We exported this archive with Xcode 9. We successfully uploaded the app to iTunes Connect with Application Loader. Yet, soon after, we got this message: This bundle is invalid - Your archive contains paths that are not allowed: ( "AppThinning.plist" ) This was not happening with Xcode 8. Cœur When you're exporting with Xcode 9 or later, they will ask you if you want to Strip Swift symbols: Well, don't uncheck it ! And the error will be gone. 来源: https://stackoverflow.com/questions/46361761/this-bundle-is-invalid-your-archive-contains-paths-that-are-not-allowed