iPhone push-notification error Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" - apple-push-notifications

All the setup as per requirements.
ApplePushNotification[7822:707] Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x1922f0 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
Please help.

I have encountered the problem, its possible causes in order are below:
"produce CSR"
"download the development and production certificate"
"configure the development and production SSL "
"download the Provisioning certificate"

Related

Problem running an app on the iPhone with Xcode

Hello I am having some problems running my app on my iPhone when I run the app from me this error:
Xcode's output:
↳
error: unable to read property list from file: /Users/indumonta/AndroidStudioProjects/contagem_de_pessoas/ios/Runner/Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.) (in target 'Runner' from project 'Runner')
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on Tigomes.
Terminal:
MBP-de-Luis:~ indumonta$ plutil Info.plist
Info.plist: file does not exist or is not readable or is not a regular file (Error Domain=NSCocoaErrorDomain Code=260 "The file “Info.plist” couldn’t be opened because there is no such file." UserInfo={NSFilePath=Info.plist, NSUnderlyingError=0x7fd621d04140 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}})
Can someone help me?
Open your project directory and run from within
flutter create contagem_de_pessoas
This should create the missing info.plist

How to fix "SSL error: certificate verify failed"

I started a bash code that tries to download a file via axel, but when the script is about to download the file, it crashes and the error SSL error: certificate verify failed.
Can someone please help me with that, like adding an exception via command-line?
Part of the code:
axel ${EXTRAARGS} --alternate "https://build.nethunter.com/kalifs/kalifs-20171013/kalifs-armhf-minimal.tar.xz "
Other variables were already declared.
The result is:
Initializing download: https://build.nethunter.com/kalifs/kalifs-20171013/kalifs-armhf-minimal.tar.xz<br>
SSL error: certificate verify failed
Thanks anyway.
Did you try man axel? From the man page:
--insecure, -k
Do not verify the SSL certificate. Only use this if
you are getting certificate errors and you are sure
of the sites authenticity.

using security to importing CSSMERR_TP_CERT_EXPIRED secutity codesigning

Does anybody know why when I use 'security' on os x to import a valid identity that it seems to think it has expired:
There are 2 machines, my development machine and a jenkins slave.
I am using the xcodebuild to create an archive and then use:
xcodebuild -exportArchive -archivePath myApp.xcarchive -exportOptionsPlist exportOptions.plist -exportPath . PROVISIONING_PROFILE=fdd0caeb-58fb-41df-a5e8-e5e9bd1f95c9 "OTHER_CODE_SIGN_FLAGS=--keychain /Users/me/Library/Keychains/Buildsystem"
to build an ipa for the store. This works on my development machine using the same archive and the same exportOptions.plist but not on the jenkins slave. I get this error:
016-10-06 23:29:23.438 xcodebuild[87720:8494157] [MT] IDEDistribution:
-[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path
'/var/folders/yd/l_8k4cn91kjc9r853crzz98m0000gn/T/MyApp_2016-10-06_23-29-23.437.xcdistributionlogs'.
2016-10-06 23:29:23.888 xcodebuild[87720:8494157] [MT]
IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=1 "The
operation couldn’t be completed. (IDEDistributionErrorDomain error
1.)"
error: exportArchive: The operation couldn’t be completed.
(IDEDistributionErrorDomain error 1.)
Error Domain=IDEDistributionErrorDomain Code=1 "The operation couldn’t
be completed. (IDEDistributionErrorDomain error 1.)"
** EXPORT FAILED **
I suspect it is because it thinks the code signing identity is bad. When I imported the identity as:
security import AP_Store.p12 -k /Users/me/Library/Keychains/Buildsystem -P ******* -T /usr/bin/codesign
then run:
security find-identity
I get:
1) 71497439A2987BC6830DF2E4879DBD3A5F1B2857 "iPhone Distribution:
xxxxx (xxxxxxxxx)" (CSSMERR_TP_CERT_EXPIRED)
If I import the same identity on my development machine it says it is OK.
Does anybody know why the same identity would be OK on one machine but not another?
This was caused by an expired intermediate certificate.
Apple Worldwide Developer Relations Certification Authority
had expired.
After replacing it everything worked.
A good reference is: MaintainingCertificates
Another thing that can lead to errors such as:
2016-10-11 11:41:11.780 xcodebuild[87463:15799133] [MT]
IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=1
"(null)"
error: exportArchive: The operation couldn’t be completed.
(IDEDistributionErrorDomain error 1.)
is if you have an incorrect team ID in your exportOptions.plist file.

Xamarin Mono Application Entitlements missing

I can successfully archive/build my application and use it without any issue, but i can't validate it for the AppStore.
Validating the archive with Xamarin results in the following Error:
"Archive does not include an Info.plist"
(opening the archive package in the finder shows that the Info.plist is available)
Validating the archive with Xcode Organizer results in an Alert Dialog
Following errors are in the logs:
[OPTIONAL] Error Domain=NSCocoaErrorDomain Code=4 "Item at "*/Applications/My.app" did not contain a "archived-expanded-entitlements.xcent" resource.
[OPTIONAL] Error Domain=NSCocoaErrorDomain Code=4 "No file at */Applications/My.app/Contents/embedded.provisionprofile'
The App is an embedded resource of an other App and as a resulting Validation Error i get the following message:
App sandbox not enabled for My.app/Contents/MacOS/My

Unable to run the app on IOS device

I have created a sample titanium project, I am able to run my app on emulator. But when i try to deploy the same device I'm getting the following error,
[ERROR] : Error details: Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“Plan India Feedback App”) were found.
[ERROR] : Error details: CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'
Can any one suggest me what is the issue and how to resolve the same.
Phone version is: 6.1.6
Emulator version: 8.1
It indicates that your app id and Provisioning profiles dont match.Please make them same and you would be good to go
Thanks

Resources