当前位置:网站首页>Xamarin deploys IOS from scratch Walterlv.CloudKeyboard application

Xamarin deploys IOS from scratch Walterlv.CloudKeyboard application

2020-11-08 10:35:46 http://www.bing.com/searc....tin-round+rock+texas

This article will show you how to start from scratch in iOS Upper Department Walterlv.CloudKeyboard application . This Walterlv.CloudKeyboard The app is a cloud input app , stay GitHub Fully open source , use Xamarin Development , The purpose is to let the mobile phone receive the typing input from the computer . Because I'm not in iOS Find any input method that you can use a little bit , So I can only ask the prince to help me develop an application . The prince is awesome , Help me develop , But now the question is how do I deploy on my phone . This article will document my deployment steps

The prince said : It's not from scratch , The first step is to give up , Because the first step is to buy one mac equipment . Then the second step is to apply to the developer , Limited by the Internet , Let a wave of developers give up again

This part of the content will be constantly changed by Apple , So when reading this article , Please pay attention to your time in the lower right corner . When I wrote this article, I was in 2020.11.03 If your current time is too far from the time I wrote , Then be careful

Suppose there is one now mac equipment , Um. , I don't have , So I went to steal the prince's equipment , After all, he helped me develop Walterlv.CloudKeyboard application , Free development of applications, send equipment , It sounds like the logic is right

And then suppose you have a developer account , That's the real start

First through Apple's App Store , cost 3 The download and installation is complete in days XCode development tool …… Is it right? 3 God , It depends on the speed of the Internet

open XCode Click new app

In the new application interface, select Team And enter a random application name , This app name doesn't matter . Then choose UIKit App Delegate Used to support iOS 13 edition , Here's the picture

Choose a folder at will to save the project

After the new building is completed , The interface you can see is as follows

Enter the options page of the project , Double click or right-click the item point option to enter this page

Let go first XCode application , Take another three days to install VisualStudio as well as Xamarin function , from  https://github.com/walterlv/Walterlv.CloudKeyboard  Download the code and open it

The following interface is in VisualStudio On , We need to be in VisualStudio Modify bundle identifier on , The modification method is to double-click Info.plist file

The key is the content of the bundle identifier

The naming rule for the bundle identifier here is  com. Name of the developer or team . Random application   Format , And my developer team name is actually  lindexi-gd  instead of  lindexi_gd  or  lindexi  Ha , This part needs to be recorded when applying for the developer account

The most difficult part of this step is to know what your developer team name or organization name is

stay Walterlv.CloudKeyboard There are two projects on the project , One is iOS Keyboard applications , The other is keyboard extension . Both projects need to make the same changes , It has been revised just now Walterlv.CloudKeyboard.iOS project . Now we need to modify Walterlv.CloudKeyboard.iOS.Extension project

double-click Walterlv.CloudKeyboard.iOS.Extension Project Info.plist file , You can see the following interface

Edit bundle identifier , The content is in the original Walterlv.CloudKeyboard.iOS The bundle identifier of the project is followed by  .Keyboard Here's the picture

After the modification is completed , Remember to save

The next step is to go back to XCode Inside , Click on the signature tab , stay Bundle Identifier In the input box, type in Walterlv.CloudKeyboard.iOS.Extension Project Info.plist The bundle identifier written by the file , Click on Tab Bond defocus , Used to generate developer signatures

After generation, you can see the following interface

Then it needs to be in XCode First deploy it , stay XCode The role of deployment is to generate a footprint application , Used to unlock trust certificates

Before deployment, you need to click to select your own iOS application , Now you need to let your own iOS The application and mac Connected

You can see that the version of my mobile phone is relatively low , And I don't want to upgrade , Because one upgrade , I can't use a bunch of my apps . Just now, in order to let the application be deployed on my mobile phone , So I chose UIKit App Delegate frame

But the deployment will fail at this time , The reason is that  .xcodeproj  The version number recorded in the file will be higher , Use VisualStudio Code open .xcodeproj  file , Replace the version

Click the deploy button , You can see XCode Execution and installation

But after the installation is complete , It will prompt start failure

stay XCode It is suggested that Could not launch “foo” Security The reason is that the sender is not trusted

Back to the phone , You can see XCode Installed apps

Click to open this app will fail , Because it can't be verified App Need to trust developers

The steps to add trust are as follows

Open Settings , Enter general

Enter the device management interface

You can see your own certificate in the device management interface , Click on your own certificate

Click verify

Wait for the Internet , You can see that the application status is verified

Now open again foo application , You can see the app open

The key of the above step is to agree to add your own certificate in general device management , This is in XCode The installed application is also known as the pit occupation application

The next step is to try in VisualStudio Start deploying your own keyboard app , Because of my mac The equipment is actually the prince's equipment , It was just stolen by me , Account information has not been cut over , stay VisualStudio You will be prompted when deploying iOS code signing key ‘iPhone Developer walterxx@iCloud.com(F53jxxxxxx) not found in keychain.’ Here's the picture

The solution is to right-click on the project , Click the options , Modify bundle signature

Into the bundle , Modify the configuration file

Choose your own configuration profile and signature ID , Be careful not to select Auto

The effect of the selection is as follows

Please see the above step for details  Xamarin iOS The signature ID and configuration file update method after switching the developer account

That is to say, when there is no choice in this step , The reason for the problem is not in XCode Generated in the signature of , We need to make sure that in XCode Generated inside , Here's the picture

stay Bundle Identifier After typing , Press down Tab Bond defocus , You will be prompted to create , Here's the picture

Now again at VisualStudio Deployment , If prompted because there is an application with the same name signature , The reason is that at the beginning XCode The created footprint application uses the current in VisualStudio The bundle signature used for deployment

 BundleIDConflictWithOtherIdentifier: App with identifier com.lindexi-gd.CloudKeyboard.Keyboard is already installed, so we can't install App Extension with that same identifier.
error MT1006: Could not install the application '/Users/lvyi/Documents/Codes/walterlv/Walterlv.CloudKeyboard/CloudKeyboard.iOS/bin/iPhone/Debug/device-builds/iphone10.3-13.1.2/Walterlv.CloudKeyboard.app' on the device 'lindexi': AMDeviceSecureInstallApplicationBundle returned: 0xe80000cc (kAMDBundleIDConflictWithOtherIdentifierError).

At this time, you can't go back to the mobile phone to delete the pit occupying application , Because this is a pit occupying application . If it's deleted , Then the signature in the device management will be invalid

So the solution is to go back to XCode Create another app , modify Bundle Identifier Redeployment

After the redeployment , You can see two apps on your phone

Delete the initial deployment of pit occupying applications

Return to VisualStudio Click build deployment , At this time, you can see Xamarin The icon and deployment on the application

stay VisualStudio When you start debugging , You can see Xamarin The interface of

This is a keyboard application , Need to go through the following configuration to use

Enter settings , Enter general , Enter the keyboard

Click on the keyboard

Click Add keyboard

choice CloudKeyBoard Click to see the following interface

Click to enter the cloud keyboard Cloud Click to allow full access to

Now you can use Walterlv The cloud keyboard of , This project GitHub Fully open source

Open source address please see  https://github.com/walterlv/Walterlv.CloudKeyboard

This is the whole deployment process , The steps are not yet 50 Step , I believe you will be deployed by Apple pit several times

版权声明
本文为[http://www.bing.com/searc....tin-round+rock+texas]所创,转载请带上原文链接,感谢