xcode9

Where is my app document folder in Xcode 9 simulator

前提是你 提交于 2019-12-20 15:39:13
问题 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? 回答1: 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

Autoresizing not working in iOS11 / XCode 9

孤街醉人 提交于 2019-12-20 14:06:39
问题 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

Xcode9 code coverage is not displayed

半世苍凉 提交于 2019-12-20 10:24:41
问题 I have been trying to get the code coverage for my project using Xcode 9 . All test case run successfully but did not generate the code coverage report under Code coverage tab. I tried following things: Enable the Gather code coverage in scheme. Enable Code Coverage Support for my target. Enable the Show case bundle option. Is there extra setting require to check code coverage report ? or should I missed something ? Thanks in advance. 回答1: Issue Resolve in Version 9.3, to get the code

iOS 11: ATS (App Transport Security) no longer accepts custom anchor certs?

前提是你 提交于 2019-12-20 08:28:35
问题 I am leasing a self signed certificate using NSMutableURLRequest and when the certificate is anchored using a custom certificate with SecTrustSetAnchorCertificates IOS 11 fails with the following error message: refreshPreferences: HangTracerEnabled: 1 refreshPreferences: HangTracerDuration: 500 refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0 ATS failed system trust System Trust failed for [1:0x1c417dc40] TIC SSL Trust Error [1:0x1c417dc40]: 3:0 NSURLSession

Xcode 9, Carthage. iTunes Connect Error: “Invalid Bundle - Disallowed LLVM instrumentation”

南楼画角 提交于 2019-12-20 08:18:23
问题 Today I downloaded Xcode 9 and made the necessary changes for my application to compile. The application is compiling and running locally without any issues. Using Xcode 9 I uploaded it to the App Store. Upload was successful without any errors. I then go the following email from Apple: Dear developer, We have discovered one or more issues with your recent delivery for "KiteSpotter - Kitesurf wind and weather forecast". To process your delivery, the following issues must be corrected: Invalid

problem with images loading on top of already set images swift 4

痞子三分冷 提交于 2019-12-20 06:24:03
问题 I'm having an issue in my cellForItemAtIndexPath where I am setting an image to my cell's UIButton but every time I scroll the collectionView's cells, it's placing the image on top of the already set image again and again. I can tell because the shadow of the image is getting thicker and thicker. I'm pulling the images from an array that I created of image literals in that swift file and the correct images are loading so there's no problem there. I'm sure this is a simple fix for most but I

Properly archive iOS app with extensions

℡╲_俬逩灬. 提交于 2019-12-20 05:12:35
问题 I've just added a new RichNotification Extension to my project. Now I've got "myApp" target and two targets for: "RichNotification" and "RichNotificationContent" When I archive the main target for the App Store works fine but I get this error while trying to upload to the App Store: ERROR ITMS-90700: "Incorrect Platform. You included the iOS arm64 executable “myAPP.app/PlugIns/myAPPRichNotifications.appex/myAPPRichNotifications” in your iOS bundle. Only iOS executables can be included." Is

Bulk fix hundreds of “#selector not exposed to Objective-C” errors in Xcode 9 or 9.1

情到浓时终转凉″ 提交于 2019-12-20 04:54:21
问题 Is there any way to fix multiple errors at once by Adding '@objc' to expose this instance method to Objective-C , I actually had over 200 of these errors, after I done fixed about 70 errors, got tired sick if doing this one by one. I tried selecting multiple of these errors in issue navigator but dont see a way of Fix at once. The only way I see is to select one error at a time and hit Fix , ooh this is sickening, please help if you know any way. 回答1: You'll want to run the migrator – go

iOS Compatibility on different iOS Operation Systems

大城市里の小女人 提交于 2019-12-20 03:36:06
问题 I wanted to ask how compatibility on different iOS operation systems works in iOS. For example If I develop an app on Xcode 9.2 and Swift 4 for iOS 11 , should it work on iOS 9 ? I am coming from Android background which you specify the minimum Android OS that is needed for the app to run in the Gradle file. Does anything similar exist on iOS? 回答1: Very simple solution: Set deployment target as 9.0 in your build target general settings. iOS will automatically handle support from 9.0 onwards

Add Navigation Bar in UICollectionView in swift 4, iOS 11

别等时光非礼了梦想. 提交于 2019-12-20 03:12:40
问题 After upgrading the iOS 11 and swift 4(Xcode 9), I got lots of UI problem. :( The most unsolvable problem is Navigation Problem. I put the Navigation Bar in UICollectionView Controller . Navigation bar height does not show properly and however I write the code. I set navigation bar height "100". I write this code in ViewDidLoad(). if #available(iOS 11.0, *) { print("IOS 11 Screen") UINavigationBar.appearance().largeTitleTextAttributes = [ NSForegroundColorAttributeName: UIColor.white, ]