Qt for iOS: code signing is required

2019-01-28 01:39发布

I have yes smite version installed on my MaC and also Xcode version is 6.1. I downloaded Qt from official website and tried to build a very simple program. However, it gave me 3 error messages

:-1: error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.

:-1: error: code signing is required for product type 'Application' in SDK 'iOS 8.1'

:-1: error: Xcodebuild failed.

I searched on web on possible solutions but could not find any. what should I do build my applications on qt?

标签: c++ ios qt4
2条回答
神经病院院长
2楼-- · 2019-01-28 02:17

Add this to the qmake file for your project:

ios: {
    QMAKE_DEVELOPMENT_TEAM = ABCDEF0123
    QMAKE_PROVISINOING_PROFILE = 12345678-abcd-1234-abcd-12345678abcd
}

To get these settings read your provisioning profile in ~/Library/MobileDevice/Provisioning Profile, specifically, the following sections:

<dict>
    ...
    <key>TeamIdentifier</key>
    <array>
            <string>ABCDEF0123</string>
    </array>
    ...
    <key>UUID</key>
    <string>12345678-abcd-1234-abcd-12345678abcd</string>
    ...
</dict>

Reference:

查看更多
成全新的幸福
3楼-- · 2019-01-28 02:18

Add this to your qmake file for the project:

setting.name = DEVELOPMENT_TEAM
setting.value = XXXXXXXXXXXXXX
QMAKE_MAC_XCODE_SETTINGS += setting

Replace the X's with the actual value for your team. Note, the value is not the team name - it's some other identifier. To get that value (after downloading provisioning profiles in XCode), do the following :

  • Manually set the code signing team in an XCode project from within XCode (project general tab).
  • View the project file's "package contents"
  • Open the file project.pbxproj in a raw text editor.
  • Search for DEVELOPMENT_TEAM.
查看更多
登录 后发表回答