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
20
votes
2 answers

Xcode 7 supporting watch OS1 and OS2

I have been fiddling with Xcode 7 for sometime now, I get to know that it supports only Swift 2 and there is no way to support Swift 1.0 or 1.2 in Xcode 7. This is fine. Now coming to WatchOS, can I have two targets one for WatchOS1 and one for…
Satheesh
  • 10,998
  • 6
  • 50
  • 93
19
votes
3 answers

How to get the original size of screenshots using iOS Simulator in Xcode 7 when scaling down

In Xcode 7.1 Simulator, when using ⌘+s to save screenshot to desktop, it saves the actual size of the simulator. For example, iPhone 6 Plus 100% scale simulator save screenshots as 1242 x 2208; 25% scale simulator save screenshots as 310 x 552. Is…
sbs
  • 4,102
  • 5
  • 40
  • 54
19
votes
4 answers

Cannot run app on real Apple Watch

my configuration: Apple Watch (WatchOS 2.0.1), iPhone 5S (iOS 9.1) Xcode 7.1 on MacOS X El Capitan. I can run my app on the iPhone just fine. However, when I try to run my app on the Apple Watch, it seems like it's not possible. What I see in the…
ajpallares
  • 777
  • 4
  • 16
19
votes
3 answers

Can an 'Unwind Segue' work between two storyboards connected by a storyboard reference?

In iOS 9, storyboards can be connected by a 'storyboard reference' that links to a second storyboard by adding a storyboard reference and setting the 'referenced ID' to the name of another storyboard file. Is it possible to set up an unwind segue in…
Iain Delaney
  • 562
  • 4
  • 17
19
votes
2 answers

Xcode adds a lot of tag in my storyboard and xib file

Just wanna know if anybody has the same issue as mine: Xcode adds a lot of tags into the storyboard I touch. I try to remove but I can't because it keep adding those tags back. It this a bug of the new Xcode I'm using (7.0.1)?
Sam Zhao
  • 209
  • 2
  • 6
19
votes
4 answers

iOS 9 Xcode 7 GM Cannot Submit to App Store iTunes Connect - Submission Deployment Target must be 8.4, cannot be 9.0

I just built my app with Xcode 7 GM with a deployment target of 9.0, is there some document from Apple that states you have to use 8.4 and not 9.0? When I try to submit this app for review I get the message: Invalid sdk value. The value provided…
Polar Bear
  • 918
  • 2
  • 7
  • 19
19
votes
7 answers

Xcode Project won't run on iOS Device

Xcode gives me this message every-time I try running my app on my iPhone. (Works fine on the simulator.) (And this occurs in every project I have.) (I also just downloaded Xcode again.) This is the message I get. App Installation Failed. Unknown…
Amit Kalra
  • 4,085
  • 6
  • 28
  • 44
19
votes
4 answers

How to check for the presence of static text displayed from the network in UI tests in Xcode?

I am using the UI test APIs introduced in Xcode 7 XCTest. On my screen I have a text that is loaded from the network. The test fails if I simply check it with exists property. XCTAssert(app.staticTexts["Text from the network"].exists) // fails It…
Evgenii
  • 36,389
  • 27
  • 134
  • 170
19
votes
4 answers

What is nonnull in objective C?

Can someone elaborate why is nonnull introduced in iOS 9 ? For example, the NSArray method + (instancetype)array; is now + (instancetype nonnull)array; Refer to…
Mehul Parmar
  • 3,599
  • 3
  • 26
  • 42
19
votes
4 answers

How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?

I've updated to OS X El Capitan & Xcode 7 Beta released today and now my CocoaPods projects no longer work because of the new Swift syntax requirements. The automated Xcode project update breaks the code. Has anyone already figured this out already?…
Kris Haamer
  • 313
  • 1
  • 3
  • 9
18
votes
5 answers

Search Bar always visible

Hello I want the searchBar always visible, that is what I have: searchController = UISearchController(searchResultsController: nil) tableView.tableHeaderView = searchController.searchBar searchController.searchResultsUpdater =…
user3581502
18
votes
3 answers

How can I change the Title for a 3 segmented Control Segments, when I enter a view control?

The Segment name is Entrada. I am doing like this: override func viewDidLoad() { super.viewDidLoad() Entrada(sender: UISegmentedControl) { setTitle("Action 1", forSegmentAtIndex: 0) setTitle("Action 2", forSegmentAtIndex:…
fr0zt
  • 733
  • 4
  • 12
  • 30
18
votes
5 answers

How to resolve: "NSPersistentStoreCoordinator has no persistent stores"?

I'm following this tutorial exactly, which adds CoreData to an existing app: https://www.youtube.com/watch?v=WcQkBYu86h8 When I get to the seedPerson() moc.save(), the app crashes with this error: CoreData: error: Illegal attempt to save to a file…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
18
votes
3 answers

How to add NSExceptionDomains to plist of xcode Version 7.0.1?

I would like to bundle a HTML based website as an iPhone app using Xcode Version 7.0.1, everything works fine and my only issue is that when I test the application on iPhone 4s, it wont show images that are accessed through http. However, I could…
Jack
  • 6,430
  • 27
  • 80
  • 151
18
votes
10 answers

NSAllowsArbitraryLoads not working

I had a working app that downloads some info from an http domain. But after the Swift 2.0 and Xcode 7 update, my app can't connect to the server and download the json data, I get the "App Transport Security has blocked a cleartext HTTP (http://)…
Pablo Quemé
  • 1,414
  • 4
  • 16
  • 29