Changing app id configured in XCode 4 - xcode4

Where do I change the originally configured app id in XCode 4?
I have one name in the Provisioning Portal and another in XCode and I would like to change XCode so they're one and the same.

You will have to edit the file [project-name]-Info.plist to change the prefix of the Bundle identifier to match the provisioning profile.
Dave

Related

How do I generate Google Play Console upload key using Xamarin Forms?

SUMMARY
I created an app App using Xamarin Form and Visual Studio 2019.
Folder/file structure:
[d] App
|-[d] App
| |-[d] App
| | |- ...
| |-[d] App.Android
| | |- ...
| |-[d] App.iOS
| |- ...
|-[f] App.sln
I finally got rid of all the errors and warnings and tried to upload APK to Google Play Console. I found multiple *.apk files and googled that I have to upload the one that has "-Signed" in its name. It resides in App/App/App.Android/bin/Debug. Upon the failed upload I got the following message:
Upload failed
You uploaded a debuggable APK or Android App Bundle. For security reasons you need to disable debugging before it can be published in Google Play. Find out more about debuggable APKs or Android App Bundles.
You uploaded an APK or Android App Bundle that was signed in debug mode. You need to sign your APK or Android App Bundle in release mode. Find out more about signing.
WHAT I DID
I found one SO Q&A that says I should change my project from Debug mode to Release.
I found that, if I right-click App.Android in (VS) Solution Explorer and choose Properties, I can choose Android Options tab on the left and then "Configuration: Release". It didn't work. But there is also Android Package Signing tab on the left which has the "Sign the .APK file using the following keystore details" checkbox unchecked.
Before I delved into the latter, I also found that in Visual Studio top-most menu I can open "Build" and choose "Configuration Manager" where I can change "Active solution configuration" to "Release" which in change turn all three project to "Release". I did so and it still didn't work. (No new *.apk file was created)
In the last link in quoted message above I found instructions on how to create the key needed
In the menu bar, click Build > Build > Generate Signed Bundle/APK.
In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next.
Below the field for Key store path, click Create new.
{so forth...}
but these are only for Android Studio not Visual Studio. Is there any way how to do it with Visual Studio?
Xamarin can be annoying for newer users, especially if you have made any changes to the defaults unknowingly. And the release configuration in the default template creates a debuggable APK, so that's not helpful either.
Let's follow the steps to publish an app, and disable debugging from the Release APK:
Make sure you choose Android, Release configuration in the main window as shown.
Then double click on the Android project to open the Project Options and navigate to Compiler. Make sure that for the "Release" Configuration selected, you change the Debug Information to "None". Don't forget to press OK and save the changes.
Rebuild All.
Right click on the Android project and select Archive for Publishing.
Once archived, continue to Sign and Distribute as you were doing earlier.
Make sure to read the comments for more details!

Exclude Android build while building Xmarin.Forms sln

Currently I installed a Mac pipeline agent without android tools, because I intended to use it for iOS only. My question is how to filter the Xamarin.Form solution not to build Android because it fails on this environment.
I'm wondering if there is a way for exclude the android part in the Build Xamarin azure task. I'm asking a way of doing it through: msbuild /t:restore;build /avoid:Android.csproj;Android.Binding.csproj or something alike...
in VS Mac (should be similar, but possibly with different menu paths, on PC) select Solution --> Options in the Solution Explorer. Under Build/Configurations create a new config (or copy an existing one). Then select Configuration Mappings, select the config you just created, and Disable the projects that you want to exclude.
When setting up your build pipeline you should have to specify which configuration you want to use.

aspnet with angular 4 template has changed

I opening angular 4 with asp.net core project with this command
yo aspnetcore-spa
and then I choose angular and I get a new template. I mean I see files I never see before e.g : app.module.clinet.ts , app.module.server.ts
but before a week I opened project and I don't see that and I want this version (to downgrade because I don't really love the changes)
I want as in the photo

In XCode 4.2, can't set get-task-allow. Also do not exist option for create the Entitlements file

I need to build a adhoc release.
I have Xcode 4.2. Under File/New, do not exist a option for a new Entitlements file.
Under the project settings, say "Enable Entitlements". It create the file, but have no the keys of the old Entitlements. If I put the get-task-allow manually, this have not effect at all...
If you want to use the entitlement file for ad hoc testing (i.e. distribution the ".ipa" file)
on your testing device, then the following can help.
in Xcode 4.2, the entitlement file is not needed (is not used, Xcode will do the work)
delete the references to entitlement file from the Build Setting (both project and target)
set the code sign identity to ad hoc ( Phone distribution} profile in the Build Setting (both project and target) configuration
Using Product->Edit Scheme menu, set the Archive to your ad hoc configuration
Clean and Archive, this will build the ipa file into Xcode organizer
Organizer > Share ... sign the code with your ad hoc (Phone distribution) profile
Save the ipa file where you need it
drag the ipa file into iTunes
sync your devices

XCode 4 active architecture setting

I've updated the XCode to the latest 4 version (final). My project depends on a 3rd party library that was build for armv6.
The problem is that i can not change the "active architecture" as it was in 3.x.x instead I see that during linking the active architecture flag is always passed as armv7.
Does anyone know how to set active architecture for the build target (or for scheme) ?
Thanks in advance.
Answering to myself ...
Yes and no. You can not change the arc but you can trick the Xcode. Set it to compile not only for active architecture and leave only archv6 in the list. Hope it helps to whoever looks for an answer.
It is still possible to change the Architecure settings in Xcode 4. Select the project file in the Project Navigator. Then select the target you like to build. Then select build settings->All->Levels. In the search box enter "architectures". You should see the Architectures and Build Active Architecture settings.

Resources