I am wondering to know how to use command line to resign an application (with push notification) correctly.
Here are some background:
codesign -f -s "iPhone Distribution: *****" -vv path/to/app, the app still works well. However, push notification stop working with message No valid 'aps-environment' entitlement string found for application 'MyPushTest': (null). Notifications will not be delivered.Is there anybody know how to use command line do a correct resign, after which push notification will work as normal?
Thanks.
If your mobileprovisioning profile will allow push notifications - everything should run smoothly. Please note - wildcard mobileprovisioning profiles does not support push notifications.
To check if mobileprovisioning is compatible with push notifications - check "aps-environment" string presence in the profile. It should be set to "development" for Sandbox and "production" for Production gateway.
You might want to check www.aironapp.com. It does the recodesigning for you. You will need to configure Apple Dev Account in the settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With