xcode9

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

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 10:29:25
问题 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. 回答1: 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:/

Xcode 9 code completion and highlighting not working

删除回忆录丶 提交于 2019-12-03 09:38:16
I have seen many threads about this online, but not for Xcode 9 . For some reason code completion and syntax highlighting is no longer working. Last week it was fine. Using the GM build. Anyone have this issue or know how to resolve it? A restart of Xcode and my computer did not help. In Finder I navigated to user->Library->Developer->Xcode->DerivedData and deleted the subfolder of the project in question. After next build of the project the syntax highlighting and code completion returned. In my situation, there are a few of .swift files not working. I've overcome by removing these files from

Module compiled with swift 4.0 cannot be imported in swift 3.1

烈酒焚心 提交于 2019-12-03 08:56:12
问题 Apparently I have managed to build my project in Xcode 9 beta and now I only get the error Module compiled with swift 4.0 cannot be imported in swift 3.1 When I run the project in Xcode 8. The module in my case are Alamofire. I have tried to restart Xcode but nothing happens any ideas how to solve this issue? 回答1: You have two options that you can do: Clean the project and then try to re-build your solution and see if it works. If it don´t work and you still get the same error message then do

GoogleMaps on simulator in Xcode 9 uses over 100% of CPU when moving the map

限于喜欢 提交于 2019-12-03 08:31:51
问题 So I've now converted my project to use Swift 4 in Xcode 9, and have started testing my app. It's a big app with four distinct tabs, and nearly everything is working as expected. One of the tabs is a map, using GoogleMaps. I have never had any trouble with it, but when built with Xcode 9 and shown in Simulator, it uses over 100% of CPU when moving the map, and it lags very much. Here is the debug navigator when running on a simulator. We do some custom drawing, but not 102% worth of drawing.

Cocoa App webview not loading request

情到浓时终转凉″ 提交于 2019-12-03 07:58:50
问题 I have used webview to load url but it is not loaded. i have tried the same with wkwebview but couldn't load url. I have done following import WebKit Info.plist Allow Arbitrary Loads - YES Allow Arbitrary Loads in Web Content - YES LOG: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1 dnssd_clientstub ConnectToServer: connect()-> No of tries: 2 dnssd_clientstub ConnectToServer: connect()-> No of tries: 3 dnssd_clientstub ConnectToServer: connect() failed path:/var/run

iOS 11/Xcode 9: UITableViewCell white background flickers on delete

筅森魡賤 提交于 2019-12-03 07:00:23
On iOS 11 device on deleting a UITableViewCell unexpected white background appears for some reason however all background colors are set to blue in storyboard (works fine on iOS10). - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { [self.bookmarks removeObjectAtIndex:indexPath.row]; [self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; } } Tried all types of UITableViewRowAnimation , doesn't

Xcode 9 Storyboards are not displaying properly

萝らか妹 提交于 2019-12-03 06:47:45
On Xcode 9, all my storyboards seem to be displaying in blue outlines only. Doesn't seem to be a new feature....Anyone has the same issue? Developer So far After a week of trying all the suggestions in the internet I found that Xcode 9 required some libraries in macOS High Sierra. So install them and then it will work: https://www.apple.com/lae/macos/high-sierra/ Hopefully it will help someone I has this issue in two different storyboards, where I can see an error on the top which said: "An internal error occurred..." In one of them I could solve the issue removing Derived Data following this

IPhone 6 plus simulator scaling [duplicate]

*爱你&永不变心* 提交于 2019-12-03 06:34:51
This question already has answers here : How to resize the iPhone/iPad Simulator? (11 answers) Even after scaling the IPhone 6 plus simulator to 50% (No option to scale less than this), the size is still big to work with it. How can i scale down it to 25% or less ? Run this in a terminal: defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale "0.4" You may vary "0.4" to your liking. Then, in simulator, hardware-> devices-> iphone 6 plus. KonDeichmann You can scale iOS simulator to desire scale (I tried from .2 to 1.4 ) and it worked for me. To do this you have

Xcode 9 - High CPU usage - Fan max speed

。_饼干妹妹 提交于 2019-12-03 05:45:47
问题 Ever since I upgraded to Xcode 9, my fan goes crazy when I'm working on Xcode. This is especially happening when I use Storyboards and Interface Builder. Xcode sometimes takes up to 100% of the CPU and the process named "Interface Builder Cocoa Touch Tool" is also very greedy. I read here and there that other people have had similar issues but I was wondering if anyone found a solution to this considering it's most likely a Xcode bug. Things I've tried: Unplugging my second screen: no effect

bottom layout deprecated since ios 11.0

大兔子大兔子 提交于 2019-12-03 05:39:06
What can I do to fix Bottom layout is deprecated iOS 11, I am using Xcode 9 beta 2. Simply check the "Use safe area layout guides" button in the File Inspector of the IB. Function of @paper1111 works fine in Xcode Version 9.3.1, but for me not worked first time. After two days of World War with Interface Builder Solution: 1) check the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 2) uncheck the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 3) check again the "Use safe area layout guides" button in the File Inspector