cannot archive app xcode 4,codesign error - xcode4

i recently uploaded my app to app store now i want to upload a new version of it.i upgraded to xcode 4, re downloaded all the my developer and distribution certificate,and tried to archive the app for upload but it wont get archived giveing me codesign error
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.0'
so i just deleted everything from my keychain access,xcode organizer and reinstalled everything from provisioning portal
also it when i install the app to my iPad it installs but throws following warning
Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)
i checked all the links on StackOverflow but no luck

If you view the 'Build settings' of your project, and search for 'Code Signing Identity', ensure you have your Distribution provisioning profile selected for the 'Release' option.
Your Distribution provisioning profile is the one you get from:
iOS provisioning portal -> Provisioning -> Distribution.

Related

Google Sign in Fails

I have a Xamarin Forms Application where a user can sign in with Google.
The Google Sign in works fine in debug and Release Mode.
The Google Sign in works fine when I deploy the Application to my Android device or deploy it to Android Emulator.
The Problem occurs when I Archive the File into APK or AAB format.
When I deploy the Application on my Android Device through the APK File Generated by Archiving Google Authentication Fails.
I have created an Internal Testing on Google Play Console, by Uploading the Archived AAB file. The Internal Test also gives the Same Error Google Authentication Failed.
I have added the SHA-1 keys to the Firebase Console. and downloaded Google-Services. Json File and added it to my Android project. With build action as GoogleservicesJson.
I tried Adding the SHA-1 Fingerprint of the App Signing certificate to the FireBaseConsole/Settings/SHA Certificate Fingerprints
This is a common pitfall, which happened to me a couple of times already as well.
Make sure that you don't only register the fingerprints for the different apps in Firebase, also make sure that you have the same fingerprints registered in the Google API Console of your app when working with API restrictions.
On the Credentials page, look for the desired API key, edit it and add the package names and fingerprints in the Restrictions section:

Provisioning profile for Xamarin Forms iOS Extension

Hi all I have created a service extension project in my Xamarin forms solution.
I have enabled App Groups in Entitlements.plist in both the extension project and the main iOS project (group.co.myco.myapp).
I'm getting the following error: Error: Could not find any available provisioning profiles for OneSignalNotificationServiceExtension on iOS.
(OneSignalNotificationServiceExtension)
Do you know how this can be fixed?
Update
I have enabled App Groups and added group.co.myco.myapp on the provisioning profile for my app.
I have created a new identifier (App ID) co.myco.myapp.OneSignalNotificationServiceExtension
I have also created a new provisioning profile for co.myco.myapp.OneSignalNotificationServiceExtension and enabled app groups with the same group name as (1)
Project builds, but when deploying to the device I get the following errors:
(The executable was signed with invalid entitlements.)
Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).
Is there anythig else that can be tried?
Update 2
There was an empty string in the Entitlements file. after removing that it worked.

Window Installer custom action fails for non-Admins

I have a windows setup project along with my project(WPF application) where I am adding a 3rd party USB driver(Silicon Labs USBXpressInstaller.exe) as a Custom Action in the setup project which makes my .MSI file along with the USB driver.
Project Tree: MyProject and SetUp Project
Custom Action for my SetUp Project:
After I build the project and the setup project, it is installing fine if the user is an Admin but gives the error pop-up "There is a problem with this windows installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor"(see below image) every time non-Admin tries to install the MSI. How can I fix this issue?
Any help would be really appreciated. Thank you in advance.
Thanks,
Sudheer
Edits: Below are the properties of my Setup project
Below are the properties of the Custom Action
Edits (08/06/2021): How can I suppress the below window when a non-admin is installing the msi?
Latest Update: I received a call from a client saying that they are not able to install the application at all. The user has DOMAIN ADMINISTRATOR rights for the PC he is trying to install on. For me, it is working now once I enter the Admin password (which I want to suppress). But, for the DOMAIN ADMINISTRATOR, there is no UAC pop-up shown as they are in the ADMINISTRATOR group but does not install as well.

Pushsharp push notification only works with Sandbox and not production

Hi all I am new to iOS development, I have put in the deep end to get push notifications. I found pushsharp and was using this tutorial
Tutorial I a using
I have used a windows application instead of web application and added the latest pushsharp. The code build and runs and I can get the push notification but only on sandbox.
I build my iOS app
Open the ipa on my iPad in xcode to install
once installed open the app and select allow to allow remote notifications
Get the device token when the app is opened and stick it in my winforms app
send a push using push sharp and bada bing bada boom it works like a charm.
I want to be able to use my production certificate as well. So I created a provisioning profile for App store. Created a signing request, created a certificate and in my provisioning profile section on apple portal i can see my new provisioning profile
I am able to build my iOS app successfully however when i try and install the ipa onto my ipad i get an error
App installation failed
a valid provisioning profile for this executable was not found
Is there a step which i have missed? Why do i get app installation error.
What will happen if I release a app which is using devcertificate to show push notifications?
You can't use a distribution provisioning profile to run the app on your ipad directly.
The iOS Distribution certificate can only be used to build an app that will be installed via the App Store.
You need to use either a development profile, or an enterprise distribution profile to install on test devices.
If you want to test a beat version, you can test the app using TestFlight.
Here are some way to test a beat version.
What will happen if I release a app which is using devcertificate to
show push notifications?
You have to use a production push certificate to push notification in release mode.

VS2015 + Cordova + HockeyApp +Windows Mobile

Anyone have experience/documentation integrating the HockeyApp SDK into a VS2015 Community Windows 10 Mobile Cordova app and adding the version to the HockeyApp dashboard?
When I use HockeyApp on my Windows device, I see the following error when I try to install
This App cannot be installed over the air.
I packaged the app using Project > Store > Create App Packages and uploaded the .aapx from the AppPackages. I select no when the wizard asks if Do you want to build packages to upload to the Windows Phone
Store?
Any thoughts?
In addition, When I upload the release apk, or aapx I get the following on the HockeyApp dashboard.
No statistics found. Please integrate HockeySDK to collect analytics, crash reports, and feedback:
Note: I am using the cordova-hockeyapp-plugin for Android and IOS.
https://github.com/wnyc/cordova-plugin-hockeyapp
Right click your project and select store, then click Create App Packages. Select no as you mentioned, click next, you can set Version and output type in the page. Check ARM and click create button. You may upload .appx file to Hockeyapp. Hockeyapp will create a new project in the dashboard.
Did you sign your app for company app distribution as described here?
If yes, please upload your .aetx token to the app page, then the download page should offer both files and the installation should work.
Did you set the right App ID? Does the version exist on HockeyApp? If you set right, the crash report will appear.
This App cannot be installed over the air. error appears because an .aetx is required. An .aetx is generated using a purchased Enterprise Mobile Code Signing Certificate from Symantec Corp and AetGenerator.exe
However, if you want to use the native HockeyApp for sideloading on the device, you'll still get This App cannot be installed over the air.
Note: An .aetx is not necessary for sideloading Windows 10 mobile apps. Unfortunately, the native HockeyApp does not have the ability to download and install the app for sideloading. Instead, the app should be download and sideloaded to the device via the web ui.
Solution:
Purchase Symantec Certificate to create .aetx
or
Sideload apps using the HockeyApp web ui.
Hope this helps!

Resources