iOS 10 support
-
Hi,
If you need to build you project with iOS 10 SDK you can do next:
-
If you have two versions of Xcode Qt Creator will use Xcode which installed to /Application/Xcode.app If you removed old version and install the Xcode 8 to correct path please check correction Xcode path. For this please use command like:
AndrewsMacPro:~ andrewshapovalov$ xcode-select -p
/Applications/Xcode.app/Contents/Developer -
If path is correct but you still can't build your project, you can try something like this:
2.1. Close your project in Qt Creator if it's open.
2.2. Open folder with your project in Finder and remove file <your_project_name>.pro.user (WARNING: please save backup of this file if you need save your build configuration).
2.3. Open your project in QtCreator you must see configuration dialog. Reconfigure project and try to build your project. -
If still doesn't work you can create a symbolic link for new SDK.
3.1. Open terminal and run command:cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
3.2. In this folder you will see list of all installed iOS SDK for real device (not iOS simulator). You will see two folder: iPhoneOS.sdk and iPhoneOS10.0.sdk
3.3. Create a symbolic link for iPhoneOS.sdk with name iPhoneOS9.3.sdk:sudo ln -s iPhoneOS.sdk iPhoneOS9.3.sdk //you will need to enter your password
3.4. Open QtCreator and try again.
I hope this will help to you.
-
-
Hi,
To add to @shav, if your boss is that inclined on taking on beta OSs/SDKs for development, he should consider getting you a Qt Commercial License so you can get help from the Qt Company directly.
Also, what do you mean by APNs does not work ? You don't receive any notifications anymore ? Sending notifications fails ?
Qt currently doesn't implement either so you should give more details.
-
@shav, thanx for solution! I'll try it.
@SGaist said:
Also, what do you mean by APNs does not work ? You don't receive any notifications anymore ? Sending notifications fails ?
iOS not give me APNs token. In new API token request must use UserNotifications.framework:
UNUserNotificationCenter* center = [UNUserNotificationCenter currentNotificationCenter]; [center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound) completionHandler:^(BOOL granted, NSError * _Nullable error) { // Enable or disable features based on authorization. }];
I implement APNs in my QIOSApplicationDelegate