Hi, just want to share my experiences with push (remote notifications) and potentially get some feedback.
I just noticed that my app can not get a token when build with Xcode 6 using commandline tools and the app is running on iOS 8 or below.
I get the following Error:
<Warning>: No valid 'aps-environment' entitlement string found for application 'myApp': (null). Notifications will not be delivered.
myApp[571] <Warning>: Failed to register for remote notifications. Reason: Error Domain=NSCocoaErrorDomain Code=3000 ...I use the following command line calls to build:
xcodebuild -workspace ... -scheme ... -sdk iphoneos -configuration Release CODE_SIGN_RESOURCE_RULES_PATH='\$(SDKROOT)/ResourceRules.plist' CONFIGURATION_BUILD_DIR=... ARCHS='...' CODE_SIGN_IDENTITY='...' PROVISIONING_PROFILE='...' OTHER_CODE_SIGN_FLAGS='--keychain ...' -archivePath '...' archive
xcodebuild -exportArchive -exportFormat ipa -archivePath '...' -exportPath '...' -exportWithOriginalSigningIdentity -verbose
Using Xcode 7.1 this works fine, but on the buildserver we have Xcode6. (Xcode 6.1)
Using xcodebuild [...] build with xcrun to sign works fine with Xcode6 but limits the server to one buildjob at a time using the same credentials because of some keychain issues
Both methods work on devices with iOS9 but that might be a bug since push seems to work when signed with wildcard provisioning profiles on iOS9
I wonder if anyone is experiencing similar issues, or if i missed something or if there is indeed a bug.