Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

c++ - Qt for iOS: code signing is required

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...