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
2
votes
1 answer

AutoreleasingUnsafeMutablePointer crash - bug in compiler?

I'm slowly migrating my codebase to Swift and came across a weird crash, where I'm populating an AutoreleasingUnsafeMutablePointer with a non-nil string. Here is some scaled down code: extension String { func getRegexVariableNamed(name:…
Charlie Monroe
  • 1,210
  • 9
  • 24
2
votes
1 answer

OS X agent app with NSTimer in the background is not working after deep sleep

I have a OS X agent app (which only runs from the icon in the menu bar). My app creates a NSTimer with random intervals to play a sound. func setNewTimer(timeInterval: NSTimeInterval) { self.timer =…
gbdavid
  • 1,639
  • 18
  • 40
2
votes
1 answer

Changes to placemark addressDictionary in xcode 7 Beta 6

I have upgraded to xcode 7 beta 6 as iOS 9 will be on us soon. I was very pleased that my code converted without too much hassle except for one exception. It seems that the placemark.addressDictionary has been changed to [NSObject: AnyObject]? This…
Al Martin
  • 179
  • 3
  • 15
2
votes
1 answer

Bug in Clang function-like macro parsing with Objective C variadic method call?

Consider the following call: NSString* localized = NSLocalizedString([NSString stringWithFormat:@"Hello %@", @"World"], @""); What is wrong with it? I see nothing inherently wrong, yet the compiler/preprocessor complains that too many parameters…
Léo Natan
  • 56,823
  • 9
  • 150
  • 195
2
votes
1 answer

RemoteNotification Dict has changed and CKNotification Dict is different now

I hope someone can guide me...I know Swift 2.0/ Xcode 7 still in beta but I need to convert my code... Here is my code... func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { let…
Armin Scheithauer
  • 601
  • 1
  • 7
  • 17
2
votes
3 answers

Swift 2.0: Variable was never mutated, consider changing it to let

After converting my source code to Swift 2.0, I have got 999+ warnings out of which more than 500 warnings will be "Variable abc was never mutated, consider changing it to let". Is there a way to fix all these warnings at a single shot? Going line…
Coder
  • 1,661
  • 4
  • 27
  • 50
2
votes
1 answer

How to put GameCenter on application with swift?

I made a game using SpriteKit and Xcode 7 beta. I tried to add GameCenter and Leaderboard but the problem is that the score in the leaderboard won't change (HighScore doesn't upload to GameCenter), It stay 0 all the time and I don't know how to fix…
Emm
  • 1,963
  • 2
  • 20
  • 51
2
votes
1 answer

Installing Apple Watch OS 2 App on Apple watch without iOS device

I have created a demo standalone app for Apple Watch OS 2 and It works fine in the simulator. I know the steps to install watch os 1 apps via your device but in my case I don't see Apple watch device in Xcode to run my app. Below is the error I am…
Obj-Swift
  • 2,802
  • 3
  • 29
  • 50
2
votes
1 answer

iPhone unavailable when trying to run watch app from Xcode 7 beta

I'm running watch OS 2 (beta 2) and iOS 9 (beta 3) and can't run my watch app because Xcode tells me that the iPhone is unavailable. I'm guessing this might be a problem with watch OS 2, but if not has anyone got any ideas for how to fix the…
jackchmbrln
  • 1,672
  • 2
  • 14
  • 26
2
votes
1 answer

Cannot debug - variables values not displayed

So, I'm currently working on pretty large project, which also consists of iOS application. Problem is, that few days ago, Xcode debugger stopped displaying variable values. I've tried to reset build settings, checked code optimization,…
Ashok28
  • 108
  • 1
  • 8
2
votes
2 answers

Objective C - "Reset Content and Settings" programmatically in test files

I am playing around with the new UI testing introduced in Xcode 7 beta. In one of my UI testing scenarios, I need to add some code that does the same thing as clicking Simulator -> Reset Content and Settings in the setup() of my test file, which is…
SeaJelly
  • 1,738
  • 1
  • 15
  • 30
2
votes
5 answers

NSExtensionPointIdentifier error only on real device

I am getting the following error when I try to run my Apple Watch app on my device: error: WatchKit App doesn't contain any WatchKit Extensions. Verify that the value of NSExtensionPointIdentifier in your WatchKit Extension's Info.plist is set…
Jake Chasan
  • 6,290
  • 9
  • 44
  • 90
2
votes
2 answers

Get value from selected picker row in WatchKit 2

I'm using Xcode 7 and I'm trying to pass a value from the picker to another function when a button is pressed. Is it possible to get the value of the row that is currently selected in the picker? Or do I have to use the picker as the button somehow?…
Aj Langley
  • 127
  • 9
2
votes
0 answers

Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

I do realize that there is one solution to this on StackOverflow. However it did not fix the error for me. Using Xcode 7 beta 4, Swift 2.0, OS X El Capitan. Here is a screenshot of my issue: http://imgur.com/ag4emii How can I get rid of this build…
Jack Berstrem
  • 535
  • 1
  • 5
  • 22
2
votes
1 answer

SSL Handshake failed 9801 - TCP connection - Xcode 7

In the app , built on Xcode 7 (beta) , TCP socket connection (NSStream) fails with below error. **CFNetwork SSLHandshake failed (-9801) Stream Error -9801: The operation couldn’t be completed. (OSStatus error -9801.)** In the Info.plist I have…