Change framework paths in Xcode

I want to add Facebook login button to an Xcode Project and it tells me that I should add it's folder's directory to FrameWork paths. How can I do this in Xcode? I clicked on Debug and added the directory to second parenthesis, but it tells me that...
more »

2017-02-15 20:02 (0) Answers

CakePHP vs CryptoSwift

I'm having some problems making my code work between Swift and my PHP Server. I'm using CakePHP as Framework on my server and your plugin on iOS That's how AES256 works on CakePHP public static function encrypt($plain, $key, $hmacSalt = null) { ...
more »

2017-02-15 18:02 (0) Answers

signInWithLogin Expected Expression

I recently switched over to Swift 3 from Swift 2 and receiving an error with my signInWithLogin. I am a beginner and tried reading up on this, but it seems like nothing really has changed with this line of code so I'm not sure why I am getting an err...
more »

2017-02-15 16:02 (2) Answers

Ignore/intercept swipes on subview in swift

I currently have a single page swift application (for iOS) running on a custom view controller. Within that view controller, I've embedded another custom UIView to display some content / handle some user interaction. I'm wondering if there is a way ...
more »

2017-02-15 16:02 (2) Answers

program NSTouchBar with c++

The problem I would like to use c++ to create an application that uses the new macbook pro touch bar. However I am not able to find any really good resources. And apple does not have any docs on using c++ to program the touch bar. What I have done...
more »

2017-02-15 05:02 (1) Answers

Segmentation Fault 11, Xcode 8.2.1, Swift 3

I'm trying to create an archive of my application, but I'm getting a segmentation fault when building for an iOS Device. I do not encounter this issue when building for the simulator. So far, I have: Cleaned my project Cleaned my build folder Delet...
more »

2017-02-15 03:02 (0) Answers

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

Yearly once-off in-app subscription (app store)

I am making an app which offers an auto-renewable in-app subscription which charges a specific tier per month. I also need to make a once-off discounted year payment subscription. I see on apple's website (https://developer.apple.com/app-store/subsc...
more »

2017-02-14 11: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