Android configuration for 3.1.3 - mobile testing with Appium - appium-ios

I have registered myself with udemy.com tutorials on Appium testing but all given steps are in configuration w.r.t. for old Android Studio version like 2.x.
Now the latest version of Android Studio is 3.1.3 and after installing i could not find sdk and tools folder. How to set the path and classpath for android 3.1.3 version for Windows to use with Appium.

Android Studio 3.*:
Tools > SDK Manager > Edit "Android SDK Location"
Android Studio 2.*
SDK location for all projects from the top menu:
Try this way i try in Android Studio 2.0
File -> Settings
Settings -> SDK option
Click Edit option in SDK Location
Show "SDK Components Setup"
Click on Tree "..." in "SDK Components Wizard"
Select your new SDK Path
and for Windows:
Click on File menu.
Select Project Structure.
Edit the path in SDK Location text box. From the next time Android Studio will use this location for all your projects.
After that, Set environment variable $ANDROID_HOME to your new SDK location
Hope this helps,

Related

gear icon at the bottom right of the Android SDK Manager window when I click there is no options of repositories

gear icon at the bottom right of the Android SDK Manager window when I click there is no options of repositories .so I am not able to change to google repository from Microsoft repository , has anyone else faced this problem please help
Actually the Gear Icon works only with VS-2017 Not with VS-2019.
And in VS-2019 the SDK used is kind of combined one, soo if you want to add any google SDK, add it directly by the Android SDK Manager from Visual Studio.
Another way is to set the SDK path of Android Studio & Visual Studio(*Tool - Options - Xamarin - Android SDK, check path) to the same. Goto Android Studio & download the SDK you want, it will reflect in Visual Studio as well.
Visual Studio 19
Visual Studio 17
Visual Studio 17 when set to MicrosoftSDK
You must use the Google one, not Microsoft SDK
go to Tools - Options.. - Dialog box appears - Select Xamarin - Android Settings - Check the SDK path
Copy that path & paste the path in the URL section of My Computer

Build iOS App having Google Sign with support for Mac

I have manually embedded the Google Sign In framework into an iOS app with the .bundle and .framework files.
After adding the Mac as deployment target with the most recent Xcode and macOS Catalina versions I get the following error message when trying to run the app on the Mac.
Building for Mac Catalyst, but the linked framework 'GoogleSignIn.framework' was built for iOS + iOS Simulator. You may need to restrict the platforms for which this framework should be linked in the target editor, or replace it with an XCFramework that supports both platforms.
Can I somehow fix this problem? Or do I have to wait for Google to release a new version of the framework that is compatible with both iOS and macOS?
If the framework is open source, you can open its Xcode project, enable Catalyst and recompile.

Visual Studio 2015 Cordova iOS .ipa Location

I'm trying to release an iOS app built using Visual Studio 2015 Cordova Tools. I can deploy to the simulator and to my device just fine. But I can't find where the .ipa file is being created? My bin/iOS/release folder is empty even after cleaning solution, restarting, and rebuilding.
I have not tried with the latest versions, but I never found that I could build a release version from VS for iOS. I always went and opened the project on the Mac with XCode, using the project in the remote-build folder, tweaked the project settings (VS project never seems to allow multiple device orientations, I need to check on the others, choose the correct developer profile, and usually correct the bundle identifier). Then build and submit to app store from XCode as a normal iOS app.
Perhaps the latest versions are better on this, but I doubt you will find the app bundle in your VS solution folders, it would have to be on the Mac.

Build Problems with SQLite-WinRT Wrapper

I am having trouble getting my app to build for ARM target after adding the SQLite-WinRT database wrapper. I could reproduce this with a simple test app as follows:
(This is done in Visual Studio 2013.)
Create an empty Windows 8.1 universal app (WinRT)
Download SQLite for Windows Phone 8.1 and SQLite for Windows Runtime (Windows 8.1) using Tools/Extensions and Updates. Add them to the respective projects' references.
Using NuGet, add SQLite-WinRT package to each project.
Build for x86 (local machine or phone emulator) -> no problems.
Build for ARM (phone device) -> build error shown below (independent of debug or release builds).
There was a mismatch between the processor architecture of the project being built "ARM" and the processor architecture, "x86", of the implementation file "C:\Users\jr\Documents\Visual Studio 2015\Projects\sqlite-test\packages\Sqlite-Winrt.3.8.7.1\lib\wpa81\SQLiteWinRT.dll" for "C:\Users\jr\Documents\Visual Studio 2015\Projects\sqlite-test\packages\Sqlite-Winrt.3.8.7.1\lib\wpa81\SQLiteWinRT.winmd". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and implementation file, or choose a winmd file with an implementation file that has a processor architecture which matches the targeted processor architecture of your project.
I posted a small test project here (Windows Phone 8.1 empty project, added SQLite, added SQLite-WinRT via NuGet).
Go to project properties open build tab and set target platform to ARM
Edit
You have added WinRt sqlite. it is buid on x86 and when you want to build it on ARM process Architecture it cannot build you need to remove WinRTSQlite dll than your project will work fine. Here is Code
Hope this helps
One workaround for the problems with the NuGet package is adding the sqlite-winrt sources to your phone or universal app.
install SQLite for Windows Phone 8.1 (and for universal also Windows Runtime (Windows 8.1)) in Tools -> Extensions and Updates if not done already
add references to the respective projects
download the sources for the sqlite-winrt wrapper
copy the SQLiteWinRTPhone81(RT) (and SQLiteWinRT81 if needed) folders to your solution
add the projects to your solution in Visual Studio (right-click on solution -> Add -> Existing Project)
add references to the respective projects
edit the references for the sqlite-winrt project(s) to point to the correct version of SQLite (right-click project -> Properties -> Common Porperties -> References): add a reference to the current SQLite version in your project and remove the old reference
build your solution
I have downloaded your project and on the references i have found that you are using SQLite-WinRT and sqlite for windows phone 8.1, you don't need both.
as soon as you remove SQLite-WinRT your project start compiling.
EDIT:
inside a universal app you have to add only the right references, if is a phone project just add sqlite for windows phone 8.1, instead on the windows 8.1 app add only the SQLite-WinRT

Building to iOS from Cordova Tools using old version of iOS platform

When targeting iPhone 6 as my simulator the incorrect splash screen is loaded which is forcing the WebView to upscale.
I can navigate into the cordova project on OSX in the remote-builds folder which allows me to discover that the iOS platform version cordova is using is 3.6.3, where the latest is 3.7 which has the fixes for iOS8 and splash screens for iPhone 6.
I need to be able to tell the remote agent to use the new platform to build, not the old one. Is that even possible? Do I need to wait for a new version of the remote agent / cordova tools for VS?
Steps to manually update the Cordova version in Visual Studio is documented here. Refer the section "To update vs-mda-remote on your Mac to a different version of Cordova". Please note that Visual Studio CPT3.0 support Cordova CLI 4.0.0, you can find more info on CPT3.0 here

Resources