Questions tagged [xcode7]
Xcode is an IDE by Apple for the development of iOS and OS X applications. Use this tag for version specific questions about Xcode 7.
                                	
	xcode7
    
                            
                        
                    
            3,946
            questions
        
        
            612
            votes
        
        
            27
            answers
        
        
            383k
            views
        
    The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
                I am facing the Problem when I have updated my Xcode to 7.0 or iOS 9.0.
Somehow it started giving me the Titled error
"The resource could not be loaded because the App Transport Security
policy ...
            
        
       
    
            522
            votes
        
        
            7
            answers
        
        
            207k
            views
        
    Is it okay to delete the macOS Xcode CoreSimulator devices folder?
                My ~/Library/Developer/CoreSimulator/Devices folder is 26 GB.
Is it safe to just delete all the content? Will those files be automatically regenerated?
            
        
       
    
            298
            votes
        
        
            6
            answers
        
        
            149k
            views
        
    How to trap on UIViewAlertForUnsatisfiableConstraints?
                I'm seeing an error appear in my debugger log:
Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x191f0920 H:[MPKnockoutButton:0x17a876b0]-(34)-[MPDetailSlider:0x17a8bc50](LTR)&...
            
        
       
    
            285
            votes
        
        
            6
            answers
        
        
            137k
            views
        
    What does ENABLE_BITCODE do in xcode 7?
                I have a problem with the embedded bitcode term.
What is embedded bitcode?
When to enable, ENABLE_BITCODE in new Xcode?
What happens to the binary when enabled, ENABLE_BITCODE in Xcode 7?
            
        
       
    
            247
            votes
        
        
            16
            answers
        
        
            113k
            views
        
    'Project Name' was compiled with optimization - stepping may behave oddly; variables may not be available
                Trying to step into AFNetworking code generates following warning:
[Project Name] was compiled with optimization - stepping may behave oddly; variables may not be available.
And of course I'm not ...
            
        
       
    
            211
            votes
        
        
            22
            answers
        
        
            122k
            views
        
    Multiline label in UIStackView
                When putting multiline label (with linebreak set to Word Wrap) into a stack view, the label immediately loses the linebreak and displays the label text in one line instead.
Why is this happening and ...
            
        
       
    
            198
            votes
        
        
            8
            answers
        
        
            191k
            views
        
    Python in Xcode 4+?
                How does one create a Python friendly environment in Xcode 4, 5, 6 or 7?
            
        
       
    
            174
            votes
        
        
            24
            answers
        
        
            95k
            views
        
    Error message '_BSMachError: (os/kern) invalid capability (20)'
                Please note that this error message is pretty low level, so it crops up for different reasons in different scenarios.  If you have a scenario that isn't mentioned in one of the answers below, please ...
            
        
       
    
            167
            votes
        
        
            23
            answers
        
        
            60k
            views
        
    ERROR ITMS - 90167 No. app bundles found in the package
                Before I start writing about the error, I'm running on macOS Sierra and using Xcode 7.3.1.
So I'm creating an Archive from my App, I validate the App and it passes validation, but when uploading to ...
            
        
       
    
            154
            votes
        
        
            6
            answers
        
        
            167k
            views
        
    Change status bar text color to light in iOS 9 with Objective-C [duplicate]
                In iOS 9, how do I change the color of the status bar text to white?
            
        
       
    
            149
            votes
        
        
            4
            answers
        
        
            52k
            views
        
    Why Xcode 7 shows *.tbd instead of *.dylib?
                Xcode 7
In Target > BuildPhases > Link Binary With Libraries > tap + button
When choosing frameworks to add, you cannot find *.dylib, you'll see *.tbd instead. 
What is the reason for this? 
**For ...
            
        
       
    
            140
            votes
        
        
            8
            answers
        
        
            59k
            views
        
    Xcode - There are no dSYMs available for download
                I want to extract the dSYM file from but when I click on "Download dSYMs..." in the Organizer I get the follow message: "There are no dSYMs available for download.". 
I'm using Xcode 7.2 with a ...
            
        
       
    
            134
            votes
        
        
            7
            answers
        
        
            102k
            views
        
    Set deployment target for CocoaPods's pod
                I use CocoaPods to manage dependencies in my project. I've written Podfile: 
target 'MyApp' do
  platform :ios, '8.0'
  # Uncomment this line if you're using Swift or would like to use dynamic ...
            
        
       
    
            132
            votes
        
        
            9
            answers
        
        
            50k
            views
        
    'var' parameters are deprecated and will be removed in Swift 3
                Alright so I just update Xcode to 7.3 and now I get this warning:
  'var' parameters are deprecated and will be removed in Swift 3
How to fix this when I need to use the var in this function:
...
            
        
       
    
            125
            votes
        
        
            17
            answers
        
        
            46k
            views
        
    iOS 9 Xcode 7 - Application appears with black bars on top and bottom
                Installed the app on iPhone 6 iOS9 and here is what happened. Notice black bars on top and bottom. It works just fine on iOS8. How I can fix it?
I've tried building with Xcode 6.4 & 7. Same result....
            
        
       
    
            120
            votes
        
        
            4
            answers
        
        
            50k
            views
        
    Xcode 7 Library search path warning
                This is the warning that it is showing: 
  directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/...
            
        
       
    
            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 ...
            
        
       
    
            109
            votes
        
        
            12
            answers
        
        
            56k
            views
        
    dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
                I have just updated to Xcode 7 and swift 2 and finished fixing the errors that come with the transition. I finally got the project to build, but after the launch screen I get an error saying:
  dyld: ...
            
        
       
    
            106
            votes
        
        
            10
            answers
        
        
            36k
            views
        
    Xcode UI test - UI Testing Failure - Failed to scroll to visible (by AX action) when tap on Search field "Cancel' button
                I am trying to dismiss the search field by tapping 'Cancel' button in search bar.
The test case is failing to find the cancel button. It was working fine in Xcode 7.0.1
I have added predicate to ...
            
        
       
    
            100
            votes
        
        
            10
            answers
        
        
            59k
            views
        
    Simulate force touch / 3D touch on iPhone 6S or iPhone 6S Plus simulators
                I am trying to simulate a force touch using Xcode 7 GM on the iPhone 6S or iPhone 6S Plus simulator.  In particular, I am trying to simulate the force touch on the icon of the test app which is ...
            
        
       
    
            98
            votes
        
        
            5
            answers
        
        
            26k
            views
        
    What is the difference between Embedded Binaries and Linked Frameworks
                When using external framework Xcode now has an Embedded Binaries as well as Linked Frameworks section.
When you download an external framework and Finder->drag it into Xcode, it will place the ...
            
        
       
    
            97
            votes
        
        
            21
            answers
        
        
            54k
            views
        
    UI Test deleting text in text field
                In my test I have a text field with a pre-existing text. I want to delete the content and type a new string.
let textField = app.textFields
textField.tap()
// delete "Old value"
textField.typeText("...
            
        
       
    
            96
            votes
        
        
            10
            answers
        
        
            85k
            views
        
    Xcode 7 and ENABLE_BITCODE=YES setting does not work
                I have followed several threads around the new ENABLE_BITCODE setting in Xcode, have also tried as much as I can (admitted I'm not a xcode pro) but still cannot get the project to compile for use on ...
            
        
       
    
            93
            votes
        
        
            4
            answers
        
        
            53k
            views
        
    How do I xcodebuild a static library with Bitcode enabled?
                Xcode 7 introduces Bitcode, which is some sort of LLVM intermediate binary that means Apple's servers can recompile my app for different architectures without my involvement.
At Lookback, I ...
            
        
       
    
            92
            votes
        
        
            10
            answers
        
        
            65k
            views
        
    "Application windows are expected to have a root view controller at the end of application launch" error when running a project with Xcode 7, iOS 9
                After running function 
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
there is a crash:
 Assertion failure in 
-[UIApplication ...
            
        
       
    
            89
            votes
        
        
            18
            answers
        
        
            60k
            views
        
    Is there a way to reset the app between tests in Swift XCTest UI?
                Is there an API call within XCTest that I can put into the setUP() or tearDown() to reset the app between tests? I looked in the dot syntax of XCUIApplication and all I saw was the .launch()
OR is ...
            
        
       
    
            87
            votes
        
        
            28
            answers
        
        
            83k
            views
        
    Could not automatically select an Xcode project
                When i type "pod install" in a correct directory I always get this
Analyzing dependencies
[!] Could not automatically select an Xcode project. Specify one in your Podfile like so:
    project 'path/...
            
        
       
    
            84
            votes
        
        
            4
            answers
        
        
            12k
            views
        
    iOS9 storyboard what is unhandled action (handleNonLaunchSpecificActions)?
                I've noticed the following error popping up in the console when running my app on iOS 9 when using a storyboard. I'm using xCode7.  Is this something I need to be concerned about?
-[UIApplication ...
            
        
       
    
            83
            votes
        
        
            5
            answers
        
        
            15k
            views
        
    Google Analytics libAdIdAccess.a does not contain bitcode
                Xcode 7 beta 3 just installed some "additional components" (now Version 7.0 beta 3 (7A152u)), and now I'm getting a compiler error:
ld: '/<abbreviated>/Vendor/Analytics/GoogleAnalytics/...
            
        
       
    
            82
            votes
        
        
            9
            answers
        
        
            124k
            views
        
    "Could not find Developer Disk Image"
                Recently I've been getting the error: "Could not find Developer Disk Image"
I think this happens since I have updated iOS to 9.1 on the iPhone.
How can I fix the problem and make Xcode support iOS 9....
            
        
       
    
            81
            votes
        
        
            24
            answers
        
        
            37k
            views
        
    Test target X encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted
                I have started working with OCMock to write test cases for the existing project that I have integrated in my project workspace. After following all the steps mentioned in this link.
When I first ...
            
        
       
    
            80
            votes
        
        
            16
            answers
        
        
            25k
            views
        
    iOS Simulator Screenshots "Wrong Size" for iTunes Connect
                I am taking screenshots from my iOS Simulator and trying to put them into iTunes Connect but it continues to tell me that I have the wrong size. They are the same size with the pictures that are ...
            
        
       
    
            80
            votes
        
        
            14
            answers
        
        
            61k
            views
        
    Refresh devices in team provisioning profile managed by Xcode 7?
                It used to be that hitting the refresh arrow/loop button in preferences -> account would pull down a new provisioning profile with all ur new devices.
Now it just downloads the ones you already have. ...
            
        
       
    
            78
            votes
        
        
            5
            answers
        
        
            37k
            views
        
    Xcode 7 ERROR ITMS-90474: "Invalid Bundle", can't submit to Apple
                I have an app I'm trying to submit to Apple.  I've already validated it. I'm using Xcode 7 and Swift 2.  When I try to submit to Apple, I get the following error:
  ERROR ITMS-90474: "Bundle Invalid. ...
            
        
       
    
            74
            votes
        
        
            15
            answers
        
        
            14k
            views
        
    Cannot verify client 3000
                I am using xcode 7.1 and trying to upload my app to the app store directly through xcode. While uploading I am getting a weird error:-
  cannot verify client 3000
Note:- I recently made changes in ...
            
        
       
    
            67
            votes
        
        
            6
            answers
        
        
            27k
            views
        
    ITMS-90535 Unable to publish iOS app with latest Google Signin SDK
                I'm using xcode 7 GM seed and installed latest Google Signin SDK through cocoapods pod "Google/SignIn .  I get the attached error when I try to publish my app to apple app store.  
Help!!
Here are ...
            
        
       
    
            67
            votes
        
        
            4
            answers
        
        
            12k
            views
        
    Xcode 7 iOS 9 UITableViewCell Separator Inset issue
                This is not a question, rather a solution to the problem I faced.
In Xcode 7, when the application is run on iOS 9 on iPad devices, the UITableViewCell leaves some margin onto the left side of the ...
            
        
       
    
            66
            votes
        
        
            6
            answers
        
        
            34k
            views
        
    Can not perform `pod install` under el capitan (15A279b)
                I ran pod install with El Capitan and got this error:
Errno::EPERM - Operation not permitted - /Users/../Pods/Pods.xcodeproj/xcuserdata/root.xcuserdatad
Here's my environment: El Capitan (15A279b), ...
            
        
       
    
            66
            votes
        
        
            7
            answers
        
        
            30k
            views
        
    Storyboard reference in Xcode, where should we use it?
                There is one new control in Xcode7 beta named as Storyboard Reference. Below is its image.
It has its description as 
  Provides a placeholder for a view controller in an external storyboard. Segues ...
            
        
       
    
            65
            votes
        
        
            7
            answers
        
        
            66k
            views
        
    Xcode 7 how do you refresh provisioning profiles?
                In Xcode 6 you would click on Xcode -> Preferences -> Account -> View Details -> then there would be a little circular arrow. That is gone and there is now a "Download All" button that when pressed ...
            
        
       
    
            65
            votes
        
        
            6
            answers
        
        
            63k
            views
        
    Xcode 7 warnings: object file was built for newer iOS version than being linked
                I recently integrated Google Cloud Messaging into an app targeting iOS 7 and iOS 8. Just grabbed Xcode 7 beta 4 to get started on iOS 9 support, and now I'm getting an error from the linker:
ld: ...
            
        
       
    
            65
            votes
        
        
            11
            answers
        
        
            74k
            views
        
    XPC connection interrupted in Xcode 7 for iOS 9
                I recently updated to Xcode 7 and upgraded my iPhone to iOS 9. I have developed and released an iOS app that had worked perfectly fine on the latest version of iOS 8 and Xcode 6.
Upon trying to go ...
            
        
       
    
            62
            votes
        
        
            13
            answers
        
        
            72k
            views
        
    Xcode 7: App installation failed: A valid provisioning profile for this executable was not found
                I have already searched and almost implemented max solution but it's not installing any app even though if I am creating just sample single view app.
  App installation failed
  A valid provisioning ...
            
        
       
    
            61
            votes
        
        
            4
            answers
        
        
            32k
            views
        
    changing property contentsGravity in transform-only layer, will have no effect
                I started to create a very simple tic-tac-toe game.
The main goal is to make the view proportional to all screen sizes of all iOS devices.
So I put the image on a ViewController, make it full size of ...
            
        
       
    
            61
            votes
        
        
            17
            answers
        
        
            51k
            views
        
    iOS 9 Splash screen is black
                My apps' splash screens are all plain black after upgrading to iOS9.
Does anybody know why this is? Some of them are using a .xib splash screen and some are using images, but they're all just black ...
            
        
       
    
            60
            votes
        
        
            5
            answers
        
        
            32k
            views
        
    Crashlytics: "We're missing a dSYM to process crashes" [closed]
                Crashlytics says "We're missing a dSYM to process crashes" and when I try to download dSYMs from Xcode (7.1), I get "there are no dsyms available for download"
            
        
       
    
            60
            votes
        
        
            2
            answers
        
        
            29k
            views
        
    What is the impact of the "Requires full screen" option in Xcode for an iPhone-only app?
                For an iPad-only app or a universal app, the "Requires full screen" option tells Xcode/iOS whether the app supports iPad multitasking feature introduced in iOS 9.  But the "Requires full screen" ...
            
        
       
    
            59
            votes
        
        
            8
            answers
        
        
            26k
            views
        
    _BSMachError XCode 7 Beta
                I am getting the following error when I am running my code in Xcode7 with Swift2, after presenting a view controller through a push segue:
_BSMachError: (os/kern) invalid capability (20)
_BSMachError:...
            
        
       
    
            58
            votes
        
        
            35
            answers
        
        
            46k
            views
        
    No Assistant Results
                I am having an issue where the code associated with some of my View Controllers is not showing up in the Assistant Editor window to the right of the Storyboard. It says "No Assistant Results" where ...
            
        
       
    
            58
            votes
        
        
            5
            answers
        
        
            23k
            views
        
    Getting Framework related warning in Xcode 7.0
                error I'm receiving is this 
  directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/...