Teamcity create a path BuildAgent/work/d455sdffs654... and change my nativescript project name and app name, i try make a new folder and change to this new folder but the project name not change.
npm install --save-dev nativescript-dev-webpack
tns platform remove android
tns platform add android
tns build android --bundle
If you like your project name to be independent of its folder name, you may update the value for CFBundleDisplayName key in App_Resources/iOS/info.plist for iOS.
<key>CFBundleDisplayName</key>
<string>YourAppName</string>
For Android you may modify the value of app_name and title_activity_kimera keys in App_Resources/Android/src/main/res/values/strings.xml.
Related
I have a build build script(MyBuild.sh) set up for creating the Android apk for a xamarin forms application.
My requirement is when i give the internal test builds i want the microsoft app center crashes and analytics in the the project csproj but when i take the PROD builds i don't want the microsoft app center crashes and analytics in the project
so in the build script i check whether its a PROD build and tried to remove the app center packages from the csproj.
if [ $Env == 'PROD' ]
then
dotnet remove ./Sample/Sample.csproj package Microsoft.AppCenter.Analytics
dotnet remove ./Droid/Sample.Droid.csproj package Microsoft.AppCenter.Crashes
fi
My problem is when the script is executed it correctly removes the package from the Shared Code but not from the Droid.csproj and while trying to remove the package it throws
info : Removing PackageReference for package 'Microsoft.AppCenter.Crashes' from project './Droid/Sample.Droid.csproj'.
error: The imported project "/usr/local/share/dotnet/sdk/2.1.4/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. /Users/george.thomas/Documents/Nov/Candidate/Droid/Sample.Droid.csproj
Now if i remove the MSBuildExtensionsPath from the Droid.csproj and run the script it correctly removes the packages but the project cant be built
throwning The target "Build" does not exist in the project
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
I am trying to setup a Jenkins job for Xamarin.Forms app. I have added the MSBuild plugin to my Jenkins configuration and am trying to configure the MSBuild location.
I tried to add this Path:/Library/Frameworks/Mono.framework/Commands/xbuild to MSBuild location but the Jenkins dashboard is showing this warning:
What is the exact path for the MSBuild? how can I fix this warning?
msbuild and xbuild are located here /Library/Frameworks/Mono.Framework/Commands on a Mac.
I was running Jenkins on a Mac and did this:
Path to MSBuild:/Library/Frameworks/Mono.Framework/Commands
Name: msbuild (don't think this part matters, it is just the name you can call it anything you want.)
like so:
I added it manually in app.iOS.csproj file in tag and in the main solution file. Now it is showing and I am successfully able to archive my project and iPA file is made. But the problem is that I am unable to install my app on device when installing through diawi.
I solved the problem by adding "aps-environment" key with value as
"production" in Entitlements.plist in my iOS project
Previously there was "development" as value. I changed it to "production"
I was trying to change the Launcher icon in flutter and got this error: failed processing manifest. Failed to execute aapt
I did not even know there is a second manifest file located in another folder according to that log file. am new to flutter
Under android folder (look at the screenshot), replace ALL icons and update the name CORRECTLY under AndroidManifest.xml file
To change the icon of the two applications, I recommend you use this add-on:
https://pub.dartlang.org/packages/flutter_launcher_icons
1º Add dependency to your Flutter project's pubspec.yaml below any existing dependencies
2º Within the same pubspec.yaml file, add flutter_icons config section
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: "^0.3.2"
flutter_icons:
image_path: "icon/icon.png"
android: true
ios: "Example-Icon"
I added in my iOS project 3 targets (with different provisioning, different plist and specific configurations).
Target 1 --> MyApp-Info.plist
Target 2 --> MyApp-2-Info.plist
Target 3 --> MyApp-3-Info.plist
However, when I execute the command cordova build ios I can not choose the target to compile. It is always the target by default (Target 1).
In the logs of the Terminal, I have always the following line:
ProcessInfoPlistFile build/emulator/MyApp.app/Info.plist MyApp/MyApp-Info.plist
Is there a way to choose the target to compile? or a Xcode project configuration?
Use a before_build hook in combination with a shell variable to dynamically copy/rename the required .plist file to MyApp-Info.plist. Eg: BUILD_TARGET=1 cordova build ios. The before hook should then of course take BUILD_TARGET into account.