Questions tagged [xcode8]
Xcode 8 is an IDE created by Apple for the development of macOS, iOS, watchOS, and tvOS applications. The first release of Xcode 8 was on June 13th, 2016 with Xcode 8 beta build 8S128d. *Do not use this tag unless your question specifically involves the Xcode IDE!*
                                	
	xcode8
    
                            
                        
                    
            4,499
            questions
        
        
            769
            votes
        
        
            14
            answers
        
        
            236k
            views
        
    Hide strange unwanted Xcode logs
                When using the Xcode 8+ and creating a new blank project, the following logs appear when running the application:
2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, ...
            
        
       
    
            616
            votes
        
        
            4
            answers
        
        
            151k
            views
        
    Can I delete data from the iOS DeviceSupport directory?
                After going through and cleaning my disk with old things that I didn't need anymore, I came across the iOS DeviceSupport folder in ~/Library/Developer/Xcode which was taking nearly 20 GB.
A similar ...
            
        
       
    
            420
            votes
        
        
            15
            answers
        
        
            379k
            views
        
    How to create dispatch queue in Swift 3
                In Swift 2, I was able to create queue with the following code:
let concurrentQueue = dispatch_queue_create("com.swift3.imageQueue", DISPATCH_QUEUE_CONCURRENT)
But this doesn't compile in Swift 3.  
...
            
        
       
    
            397
            votes
        
        
            19
            answers
        
        
            443k
            views
        
    How can I delete derived data in Xcode 8?
                The projects page seems to be disappeared from Xcode 8. I used this page for deleting the derived data.
Any idea how can I delete derived data from within Xcode 8?
            
        
       
    
            328
            votes
        
        
            27
            answers
        
        
            115k
            views
        
    Code Sign Error in macOS Monterey, Xcode - resource fork, Finder information, or similar detritus not allowed
                Already tried : Code Sign Error on macOS Sierra, Xcode 8
Please see image showing error
CodeSign /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/...
            
        
       
    
            323
            votes
        
        
            19
            answers
        
        
            425k
            views
        
    Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'
                I have Xcode 8 installed on OS X El Capitan.
I get this error:
Signing for "target" requires a development team. Select a development team in the project editor.
Code signing is required ...
            
        
       
    
            287
            votes
        
        
            35
            answers
        
        
            322k
            views
        
    Xcode 8 shows error that provisioning profile doesn't include signing certificate
                Xcode 8 shows error that provisioning profile doesn't include signing certificate.
This issue is with Xcode-8 only with Xcode 7, same provisioning profile showing related identified certificate.
            
        
       
    
            254
            votes
        
        
            11
            answers
        
        
            171k
            views
        
    CGRectMake, CGPointMake, CGSizeMake, CGRectZero, CGPointZero is unavailable in Swift
                After converting code to latest swift 3.0 I am shown this error.
Also tell me solution for CGSize = CGSizeMake(0,0) 
static var frameAtStartOfPan: CGRect = CGRectZero
static var startPointOfPan: ...
            
        
       
    
            227
            votes
        
        
            7
            answers
        
        
            73k
            views
        
    Class PLBuildVersion is implemented in both frameworks
                iOS 10 / Xcode 8 GM build getting the below, never had it before on Xcode 7. Any ideas?
  objc[25161]: Class PLBuildVersion is implemented in both
  /Applications/Xcode.app/Contents/Developer/...
            
        
       
    
            202
            votes
        
        
            20
            answers
        
        
            99k
            views
        
    Xcode 8 Beta 3 Use Legacy Swift issue
                I have an Objective-C project in Xcode 8 Beta 3. Since updating, whenever I try to build I receive the following error:
  “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be ...
            
        
       
    
            190
            votes
        
        
            24
            answers
        
        
            113k
            views
        
    Xcode 8 - IB Designables - Failed to render and update auto layout status, The agent crashed
                I recently upgraded to Xcode 8 and I am having issues with the Storyboard.
If I open the project and I don't have the Storyboard open, it will compile and run just fine. Once I open up the Storyboard,...
            
        
       
    
            176
            votes
        
        
            25
            answers
        
        
            100k
            views
        
    Xcode playground gets stuck on 'Running playground' or 'Launching simulator' and won't run the code, what to do?
                Every time I create a new playground in order to test some code, Xcode gets stuck and won't run the code. It simply presents 'Running playground' or 'Launching simulator' statement at the top of the ...
            
        
       
    
            171
            votes
        
        
            3
            answers
        
        
            165k
            views
        
    Xcode Provisioning Profiles Location
                Where are the Provisioning Profiles located in Xcode 8.3.3 within the project and/or file directory?
            
        
       
    
            161
            votes
        
        
            13
            answers
        
        
            199k
            views
        
    Xcode: Could not locate device support files
                As I am trying to run my application from a newly updated Xcode 8 to my iPhone 4 which is running iOS 7.1.2, it throws the below error,
And, this is my Xcode version,
How can I fix this problem?
            
        
       
    
            151
            votes
        
        
            13
            answers
        
        
            43k
            views
        
    xcode 8 error denied by service delegate (SBMainWorkspace)
                Trying to run a build on simulator and I get this error:
The request to open "com.companyname.appname" failed.
The request was denied by service delegate (SBMainWorkspace) for
reason: ...
            
        
       
    
            143
            votes
        
        
            14
            answers
        
        
            24k
            views
        
    Warning frame for "Navigation bar" will be different at run time appears in Xcode 8 Swift 3
                Before I've upgraded to Xcode 8 I haven't seen this error in such case. I have different Navigation Controllers. For all of them I see an error Frame for "Navigation bar" will be different at the run ...
            
        
       
    
            140
            votes
        
        
            2
            answers
        
        
            27k
            views
        
    Xcode 8 Console Garbage? [duplicate]
                Has anybody else had issues with the Xcode 8 console showing a bunch of random stuff?  I don't want to have all of this cluttering my debug messages and logs.  Does anybody know how to turn this off?  ...
            
        
       
    
            135
            votes
        
        
            30
            answers
        
        
            357k
            views
        
    Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3
                I can't get rid of this error!
I have tried all sorts of things like clearing Derived Data(Preferences->Locations->click gray arrow to open Derived Data folder in Finder->right-click, move to trash), ...
            
        
       
    
            133
            votes
        
        
            30
            answers
        
        
            136k
            views
        
    Error: Could not build Objective-C module 'Firebase'
                When I compile the application I get an error equal to this:
  Could not build Objective-C module 'Firebase'
This error appear in import Firebase of my file swift.
            
        
       
    
            133
            votes
        
        
            14
            answers
        
        
            27k
            views
        
    Xcode 8.3.3 "No accounts with iTunes Connect access"
                When trying to upload an App to iTunes connect in Xcode 8.3.3, I get the error:
  iTunes Connect access for "Team-Name" is required. Add an account in the  Accounts preference plane.
The account ...
            
        
       
    
            132
            votes
        
        
            9
            answers
        
        
            59k
            views
        
    What does the "automatically adjusts font requires using a dynamic type text style" warning mean?
                I am getting the following warning:
  "automatically adjusts font requires using a dynamic type text style"
Which I can not get rid of the warning is on main.storyboard.
I have checked every ...
            
        
       
    
            128
            votes
        
        
            14
            answers
        
        
            50k
            views
        
    Xcode 8 - Missing Files warnings
                Ever since upgrading to Xcode 8 using Swift 2.3 
I have several missing files warnings. They are all related to pods that I am using.
The files that are missing are 
*.xcscheme 
*.cpp
*.xcuserstate
*...
            
        
       
    
            124
            votes
        
        
            11
            answers
        
        
            138k
            views
        
    Correctly Parsing JSON in Swift 3
                I'm trying to fetch a JSON response and store the results in a variable. I've had versions of this code work in previous releases of Swift, until the GM version of Xcode 8 was released. I had a look ...
            
        
       
    
            121
            votes
        
        
            4
            answers
        
        
            183k
            views
        
    How to install Xcode from xip file
                I am very new to macOS, I just need a mac with Xcode to compile my app. However, with macOS Sierra, I have a problem with my USB that is not working anymore (i can't plug my ipad pro)
Under OSX El ...
            
        
       
    
            118
            votes
        
        
            7
            answers
        
        
            25k
            views
        
    Xcode 8 Beta - Convert to Current Swift Syntax Failed: Could not find test host
                I am receiving an error message when I try to use Xcode 8's Convert Wizard.
  After trying rebooting, downloading fresh code, and deleting my DerivedData files I cannot escape this error:
  Convert ...
            
        
       
    
            117
            votes
        
        
            3
            answers
        
        
            87k
            views
        
    How do I toggle between Debug and Release builds in Xcode 6 / 7 / 8?
                How do I get Xcode to build an OS X app in release mode? I can only seem to find instructions for earlier versions and none of the screenshots match. I didn't see anything when I put "release" into ...
            
        
       
    
            116
            votes
        
        
            12
            answers
        
        
            37k
            views
        
    Xcode 8 Beta 4 - Comment Shortcut Disabled
                I just updated to Xcode 8 Beta 4 and the shortcut cmd + / to comment a line is not working..
In the dropdown menu it's disabled:
There's a way to activate it again?
            
        
       
    
            115
            votes
        
        
            1
            answer
        
        
            32k
            views
        
    Xcode - Could not find test host [duplicate]
                I am receiving an error message when I try to use Xcode 8's Convert Wizard. After trying install KIF Framework.
Here is the error message:
  Could not find test host for PresentrTests: TEST_HOST ...
            
        
       
    
            114
            votes
        
        
            32
            answers
        
        
            90k
            views
        
    dyld`__abort_with_payload: Without an error message
                When I start my app with Xcode, I have a crash, but without an error.
The app is just stopping on this thread:
What can I do to have more information about the issue?
            
        
       
    
            113
            votes
        
        
            6
            answers
        
        
            67k
            views
        
    What's ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with CocoaPods, Swift 3 and Xcode 8
                after installing cocoapods and adding pod "SwiftCarousel" to pod file and uncomment the platform :ios, '9.0' I got this ERROR 
  ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
and what should I do?
mohammed....
            
        
       
    
            105
            votes
        
        
            9
            answers
        
        
            35k
            views
        
    SecItemAdd always returns error -34018 in Xcode 8 in iOS 10 simulator
                Update: This issue has been fixed in Xcode 8.2. Keychain works in the simulator without enabling keychain sharing.
Why am I always receiving error -34018 when calling SecItemAdd function in Xcode 8 / ...
            
        
       
    
            103
            votes
        
        
            21
            answers
        
        
            45k
            views
        
    New build disappears after uploading it to iTunes Connect
                I'm trying to upload a build to iTunesConnect with Xcode 8. Xcode shows me that the uploading is successful. In Activity tab of iTunesConnect I see that my build is appears and it's marked as "...
            
        
       
    
            102
            votes
        
        
            16
            answers
        
        
            39k
            views
        
    Layout issues after updating to Xcode 8
                Here is a before and after of one of my screens after I upgraded to Xcode 8.All I did was open up my main.storyboard and from there, I built and ran my app on my phone.In my version control, I can see ...
            
        
       
    
            95
            votes
        
        
            13
            answers
        
        
            30k
            views
        
    Since Xcode 8 and iOS10, views are not sized properly on viewDidLayoutSubviews
                It seems that with Xcode 8, on viewDidLoad, all viewcontroller subviews have the same size of 1000x1000. Strange thing, but okay, viewDidLoad has never been the better place to correctly size the ...
            
        
       
    
            92
            votes
        
        
            17
            answers
        
        
            28k
            views
        
    Xcode 8 cocoapods abort trap: 6
                localhost:PodTest3 haiwang$ pod install
Analyzing dependencies
Downloading dependencies
Installing MBProgressHUD (0.9.2)
Installing Masonry (1.0.2)
Generating Pods project
Abort trap: 6
After ...
            
        
       
    
            92
            votes
        
        
            6
            answers
        
        
            83k
            views
        
    App rejected due to missing usage descriptions (Xcode8)
                So I got this mail today saying that the latest build of my app was rejected by iTunes Connect due to some missing usage descriptions. To be exact:
This app attempts to access privacy-sensitive data ...
            
        
       
    
            91
            votes
        
        
            9
            answers
        
        
            56k
            views
        
    iOS 10 doesn't print NSLogs
                Nothing prints from NSLog on Xcode 8.0 beta (8S128d). printf is unchanged
Here's my code:
NSLog(@"hello from NSLog");
printf("hello from printf");
Here's the output on iOS 9 Simulator:
2016-06-17 ...
            
        
       
    
            91
            votes
        
        
            3
            answers
        
        
            57k
            views
        
    What is 'Vary for Traits' in Xcode 8?
                I am using AutoLayout and Size classes, but with release of iOS 10 and new Xcode 8.0, there is one new option Vary for Traits. Is this replacement of Size Classe for different width and height of ...
            
        
       
    
            89
            votes
        
        
            14
            answers
        
        
            38k
            views
        
    Xcode 8 provisioning profile won't download
                I recently updated to Xcode 8 and as I click on "download" option next to provisioning profile in Xcode/Preferences/Accounts/View Details menu it changes to gray and does not download. After ...
            
        
       
    
            87
            votes
        
        
            2
            answers
        
        
            41k
            views
        
    Xcode 8 auto-generated quick help documentation
                Among the new features announced in Xcode 8, we can see 
"Auto-generate Quick Help documentation" : 
Is this the end of manual code documentation like we can learn on this article from NSHipster ?
...
            
        
       
    
            86
            votes
        
        
            8
            answers
        
        
            17k
            views
        
    Xcode 8 build crash on iOS 9.2 and below
                When I build my app with Xcode 8 GM Seed and run it on an iOS 9.2 below device OR simulator, I get strange  EXC_BAD_ACCESS crashes during app startup or a few seconds after the app launched. The crash ...
            
        
       
    
            85
            votes
        
        
            13
            answers
        
        
            37k
            views
        
    How do I create a Delete-Line Keyboard shortcut in Xcode 8? The Xcode 3 solutions do not work anymore
                In previous versions of Xcode it was possible to create a key binding to delete the current line. There were different solutions and they are described for example here:
Xcode: Delete line hot-key
...
            
        
       
    
            84
            votes
        
        
            4
            answers
        
        
            39k
            views
        
    Error: Protocol not available, dumping backtrace [duplicate]
                2016-09-17 15:16:04.386085 appDemo[2371:94976] [] __nwlog_err_simulate_crash simulate crash already simulated **"nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not ...
            
        
       
    
            80
            votes
        
        
            5
            answers
        
        
            24k
            views
        
    Xcode 8 :function types cannot have argument label breaking my build
                It seems that for some reason Swift have chosen to make coding in it less readable by forcing users to remove completion handler parameter labels.  I have read the Swift discussion and still think it'...
            
        
       
    
            78
            votes
        
        
            11
            answers
        
        
            95k
            views
        
    Error '_BSMachError: port 1607; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND" in Cordova app on iOS 10
                Everything works fine till I build my cordova application with Xcode 7.3.0 but it started crashing only on iOS 10 devices after building the same application with Xcode 8 whenever i'm changing the ...
            
        
       
    
            78
            votes
        
        
            8
            answers
        
        
            20k
            views
        
    NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why?
                Why the console output shows incomplete in Xcode 8 / iOS 10?
            
        
       
    
            76
            votes
        
        
            23
            answers
        
        
            54k
            views
        
    "Creating an image format with an unknown type is an error" with UIImagePickerController
                While choosing an image from the image picker in iOS 10 Swift 3 I am getting an error - Creating an image format with an unknown type is an error
 func imagePickerController(picker: ...
            
        
       
    
            72
            votes
        
        
            5
            answers
        
        
            51k
            views
        
    Use Swift 2.2 in Xcode 8?
                Is it possible to use Swift 2.2 in Xcode 8? 
From Xcode 8 release notes: 
  "Xcode 8 supports switching toolchains, such as those from swift.org,
  without relaunching Xcode. (23135507)"
I have ...