Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. iOS 10 support

iOS 10 support

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dead_manD Offline
    dead_manD Offline
    dead_man
    wrote on last edited by
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • shavS Offline
      shavS Offline
      shav
      wrote on last edited by
      #2

      Hi,

      If you need to build you project with iOS 10 SDK you can do next:

      1. 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

      2. 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.

      3. 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.

      Mac OS and iOS Developer

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • dead_manD Offline
          dead_manD Offline
          dead_man
          wrote on last edited by
          #4

          @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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved