larpon / QtFirebase

An effort to bring Google's Firebase C++ API to Qt + QML
MIT License
284 stars 83 forks source link

Code signing error #156

Open Trikos opened 3 years ago

Trikos commented 3 years ago

Hi, using this library on iOS, after setting up everything Im getting these errors:

1 Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't support the In-App Purchase capability.
2 Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 14.1'

 BUILD FAILED 

The following build commands failed:
  Check dependencies

Before this one I also get the "doesnt support messaging" I solved it inserting the correct APP_ENTITLEMENTS.name = DEVELOPMENT_TEAM APP_ENTITELMENTS.value = MyValue

Does iOS Team Prov. Prof means something or is just a generic name? My app hasnt the ability to purchase but only the PushNotification. 1 Should I enable from developer.apple.com in the console and add this ability? 2 I dont understand what product 'Application' is. Hope you can help me. Thank you (I already added analytics along with messaging because it is required)

EDIT: Checking my developer console I found that In-App purchase is active but gray out and Push is active in black: photo_2020-10-25_19-12-29

larpon commented 3 years ago

You have to sign your app with a provisioning profile that have the right permissions I guess.

There must be guides or StackOverflow answers for this online?

I haven't built a signed iOS app for years and cannot help with DRM issues, sorry.

Trikos commented 3 years ago

I have to sign my app on QT? Because my xCode is all setted up

Trikos commented 3 years ago

I already have an xCode account with all certificates working. I tried to build an app from zero on xCode using cocoa pods and it works flawlessly. So all the certificates are fix

Trikos commented 3 years ago

Hi @Larpon Can you tell me how to not use the App signed? Im trying to build it without sign but I get errors:

` === BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT App WITH CONFIGURATION Debug ===

Check dependencies

PhaseScriptExecution Qt\ Qmake .xcode/App.build/Debug-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh cd /Users/Desktop/Nicolo/Larpoon/QtFirebaseExample/build-App-Qt_5_13_2_for_iOS-Debug /bin/sh -c \"/Users/Desktop/Nicolo/Larpoon/QtFirebaseExample/build-App-Qt_5_13_2_for_iOS-Debug/.xcode/App.build/Debug-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh\" make[1]: warning: jobserver unavailable: using -j1. Add +' to parent make rule. make[1]:App.xcodeproj/project.pbxproj' is up to date.

PhaseScriptExecution Qt\ Preprocessors .xcode/App.build/Debug-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh cd /Users/Desktop/Nicolo/Larpoon/QtFirebaseExample/build-App-Qt_5_13_2_for_iOS-Debug /bin/sh -c \"/Users/Desktop/Nicolo/Larpoon/QtFirebaseExample/build-App-Qt_5_13_2_for_iOS-Debug/.xcode/App.build/Debug-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh\" make[1]: warning: jobserver unavailable: using -j1. Add +' to parent make rule. make[1]: Nothing to be done forpreprocess'.

=== BUILD TARGET App OF PROJECT App WITH CONFIGURATION Debug ===

Check dependencies Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: " doesn't support the In-App Purchase and Push Notifications capability. Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: " doesn't include the aps-environment entitlement. Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 14.2'

BUILD FAILED

The following build commands failed: Check dependencies (1 failure) make: *** [xcodebuild-debug-device] Error 65 16:16:04: The process "/usr/bin/make" exited with code 2. Error while building/deploying project App (kit: Qt 5.13.2 for iOS) When executing step "Make" `

larpon commented 3 years ago

No idea, sorry :man_shrugging: