Multiple Release Environment with Xcode 9 - Swift

I have finished writing a project and released to AppStore. Now i want to duplicate the project and change Bundle ID, Signing certificates, Splash Screen, the project specific links and images used in Storyboard. Since the Model classes and business...
more »

2017-10-04 15:10 (1) Answers

iOS App displayed with grey icon in Testflight

Deploying my iOS application to Testflight results in a grey-ish app icon. All the icons are PNG files saved without transparency. In XCode 9.0 everything looks fine: In iTunes Connect the app icons seems to have the right color: Yet Testflig...
more »

2017-10-04 15:10 (1) Answers

Loop is taking too long to process

I am using following to code to arrange the array of contacts in sections (for e.g. contact with prefix "A" should show under "A" section). If there are contacts 4-5 hundred then it takes 20 sec to process. Can you please check what is issue here? ...
more »

2017-10-04 09:10 (2) Answers

Swift Initializer Mystery

Few blocks of code: This works: import Foundation class Class1 { init(param1: String?) { print("hello") } convenience init() { self.init(param1: nil) } } class SubClass1: Class1 { } let obj = SubClass1() In th...
more »

2017-10-04 08:10 (1) Answers

How to #import inside a #define

I'm working on an Objective-C wrapper around a C++ library, whose source I neither control nor modify. The headers I import trigger various compiler warnings, so I've started to do the following: #pragma clang diagnostic push #pragma clang diagnosti...
more »

2017-10-03 23:10 (1) Answers

Xcode Framework Modules

I'm having an issue implementing modules for my particular build configuration. I have a bunch of dynamic frameworks that I would like to add module map files to so that they can be naturally imported into Swift without having to use Objective-C Brid...
more »

2017-10-03 17:10 (1) Answers

Starting the simulator in XCode 9 (not headless)

I am trying to run both my unit and ui tests with xcodebuild like: $ xcodebuild -scheme "MyAppScheme" -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=11.0' build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO The problem is that th...
more »

2017-10-03 16:10 (1) Answers

How can I make Xcode ignore xcodeproj in Xcode 9?

I have been working on a C project using Xcode9. I don't want to push my .xcodeproj directory into the GitHub. I use the source control menu inside the Xcode to sync with GitHub. I have added the following line into my .gitignore file: *.xcodeproj...
more »

2017-10-03 05:10 (1) Answers

How use Objective-c method in my Swift Class

Hello I want to use this method inside my swift class, already create the header, but I only manage to access the method (setApiKey). this is the code in objective c #import <Foundation/Foundation.h> @class CLQResponseHeaders, CLQError; @clas...
more »

2017-10-03 05:10 (0) Answers

Open Safari from XCTestCase

According to Apple's documentaion, I should be able to launch an app based on its bundle ID using the code below. // Open safariapp let safariApp = XCUIApplication(bundleIdentifier: "com.apple.mobilesafari") // Launch safari app safariApp.launch() ...
more »

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

Xcode 9, Ionic, Cordova, iOS emulator

Since I installed Xcode 9 the iOS emulator doesn't work with Cordova. When I use this command : ionic cordova emulate ios --target="iPhone-6s" The result is : No available runtimes could be found for "iPhone 6s". [ERROR] An error occurred while r...
more »

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

Xcode 9 simulator doesn't save userdefaults

Maybe it's the same issue as this one. But few of the solutions that I have tried don't work. The simulator don't save userdefaults on Xcode Version 9.0 beta 6 (9M214v). I had Xcode 8 as well (together with 9) but removed it. the code that I'm usi...
more »

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

Common Build phases for a target

Currently the way Xcode 9 ( and previous versions ) is set up, the Build phases for each target are unique. We have multiple targets and it is a pain to have to update say the Compile Sources build phase for each target separately. We would like each...
more »

2017-10-02 13:10 (0) Answers

iOS provisioning after app transfer

I was developing an iOS app under my personal account and so far used Xcode's automatic signing feature for app provisioning. I now transferred the app to another organization that I'm not part of, but they want me to continue developing the app. The...
more »

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

iOS 11 UINavigation Bar is messed up

With iOS 11 navigation bar's title view and bar button item is not centered. Also the background image's height does not change and is not shown in full.The bar height is 74. See the white space. I have tried this if(@available(iOS 11,*)){ _...
more »

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

'Hide nav bar on swipe' never returns

I have created a parallax type scroll effect (or stretchy header) in my view controller. I have a uiscrollview, which is anchored to the windows margins. Inside of this I have a view, that is anchored with 0 constant constraints to the scroll view, ...
more »

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