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.

is Apple's integrated development environment (IDE) for developing OS X, iOS, tvOS, and watchOS apps. Version 7 was presented at the WWDC on June 8th-12th, 2015. The new features of include an update to the programming language, making it faster than before. The latest version includes also support for .

Xcode 7 also adds support for deployment on iOS devices without an Apple Developer license.

This tag is only for IDE questions relating to Xcode version 7. Questions related to the programming languages should go to the appropriate tag, or . OS-related questions should go to and .

3952 questions
117
votes
7 answers

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 frameworks #use_frameworks! # Pods for MyApp pod…
Andrew Romanov
  • 4,774
  • 3
  • 25
  • 40
116
votes
3 answers

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 the help menu's search.
drewish
  • 9,042
  • 9
  • 38
  • 51
109
votes
12 answers

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: Library not loaded:…
coracora
  • 1,337
  • 3
  • 9
  • 12
105
votes
10 answers

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 wait for button to appear. The test case is failing…
Vinpai
  • 1,689
  • 3
  • 16
  • 18
100
votes
10 answers

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 implementing Application Shortcuts. Let me know if…
Kris Gellci
  • 9,539
  • 6
  • 40
  • 47
98
votes
5 answers

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 framework into the Linked Frameworks and Libraries…
Maxim Veksler
  • 29,272
  • 38
  • 131
  • 151
96
votes
10 answers

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 my test phone? My app runs fine on the simulator…
DirkLX
  • 1,317
  • 1
  • 10
  • 16
94
votes
18 answers

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("New value") When deleting string with hardware…
Tomasz Bąk
  • 6,124
  • 3
  • 34
  • 48
93
votes
4 answers

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 distribute a static archive framework with our library. It…
nevyn
  • 7,052
  • 3
  • 32
  • 43
92
votes
10 answers

"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 _runWithMainScene:transitionContext:completion:],…
andrew wang
  • 956
  • 1
  • 6
  • 8
88
votes
18 answers

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 there a way to call a shell script in Swift? I could…
Laser Hawk
  • 1,988
  • 2
  • 23
  • 29
84
votes
4 answers

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…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
83
votes
5 answers

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: '//Vendor/Analytics/GoogleAnalytics/libAdIdAccess.a(TAGActualAdIdAccess.o)' does not contain…
bdalziel
  • 2,005
  • 3
  • 17
  • 32
82
votes
9 answers

"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.1 devices?
Pulkit sharma
  • 983
  • 1
  • 6
  • 6
81
votes
24 answers

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 executed my test case it's giving the error above. I…
Varun Mehta
  • 1,733
  • 3
  • 18
  • 39