Xcode 8.2 - Autolayout: xib run on different sizes

I get a problem using xib's and Autolayout on Xcode 8.2. I have bind a Xib for each viewController which are then added on a storyboard. My problem is to test different device sizes on my app. Everything is ok when I select the right "View as: #dev...
more »

2017-02-14 16:02 (0) Answers

What is Text-based API option in Xcode

Recently, I observed section named Text-based API in Xcode build settings. In Xcode 7.X it's under Linking section. But now with Xcode 8.X, it's separated out as another section in Xcode build settings. I'm interested to know what exactly it will do?...
more »

2017-02-14 10:02 (1) Answers

Google Maps zoom out to GPS and markers

I am trying to show three things on map : GPS (the current location) , Marker 1 , Marker 2, but I am not sure I am doing it right or not ! Here is my code : self.startMarker.position = CLLocationCoordinate2D(latitude: self.startLatitude, longitude:...
more »

2017-02-14 09:02 (2) Answers

Swift: How to add functionality to an init method

I keep coming across this same problem. In the below code I would get an error because I'm running makePlayersFrom before I have initialised all the properties of the class. I can put players as an optional variable but it shouldn't be and I think ...
more »

2017-02-13 20:02 (1) Answers

ios: Timer working in simulator but not on device

I am currently using a time on a Swift application. In previous app I had no problems but for this one I had a particular behavior: the timer works fine on the simulator but is never fired on the real device (10.0.2). NSTimer.scheduledTimerWithTim...
more »

2017-02-13 12:02 (1) Answers

Access to project code from XCTestCase - UI Test

I'm trying to setup UI Test in my project. I'm making a UI test that tries to login through my apps login prompt. In order to ensure that the login prompt is shown when the test launches, I'm trying to run ServerManager.logout(), which is in the proj...
more »

2017-02-13 11:02 (1) Answers

How to fix xcode bug "web filter is active"?

Hello I am getting this in the log and im not sure what it is and why it is logging this message also does it have any bad affect on my app ? 2017-02-12 20:20:21.222930 goball [760:91949] WF: _userSettingsForUser mobile: { filterBlacklist = ( )...
more »

2017-02-13 03:02 (1) Answers

Using custom class in XPC protocol

I’m attempting to write an XPC service using my own type on the withReply signature. The type/class has Xcode’s “target membership” of both the main app and the XPC service. However I am getting incompatible reply block signature in the debug...
more »

2017-02-12 05:02 (0) Answers

Constraints not lining up across different devices

I recently realized that my constraints weren't lining up across devices. I started to Google ways to fix this, I can only get some devices to align correctly but others won't. Can someone explain to me on how to do constraints the right way? Image ...
more »

2017-02-12 04:02 (1) Answers

add Xcode target in git repository

I am working on an iOS project. I have checked source control support (git) at project creation. I have add a target for apple watch. In fact Xcode created 2 targets: watch app and watch app extension. My problem is i was supposed to see a letter (...
more »

2017-02-11 09:02 (1) Answers

XCODE AppelScript ObjC : set a variable

property parent : class "NSObject" -- IBOutlets property theWindow : missing value set value1 to :value number 1 on buttonClick_(sender) set the clipboard to value1 end buttonClick_ I'm very lost with the way Xcode is han...
more »

2017-02-11 08:02 (1) Answers

Found fatal error after firebase config

I am not able to sort out this exception. I have googled a lot about it but didn't find anything related to this! Note: when I remove FIRApp.configure() from appDelegate then it works fine. Any help will be really really appreciated!!! ...
more »

2017-02-11 07:02 (1) Answers

How to recreate inner shadow in swift?

I need to create an inner shadow like this, but it's not of a constant width, and it also repeats the corner radius of my shape. What's the best way to do it? And also, I feel pretty constrained with my skills in graphics. What technic should I learn...
more »

2017-02-11 00:02 (0) Answers