我在更新 Angular 版本时遇到问题。当我使用时ng update,我得到以下输出:
Name Version Command to update
----------------------------------------------------------------------------------------
@angular/cdk 12.1.2 -> 12.2.0 ng update @angular/cdk
@angular/cli 12.1.2 -> 12.2.0 ng update @angular/cli
@angular/core 12.1.2 -> 12.2.0 ng update @angular/core
@angular/material 12.1.2 -> 12.2.0 ng update @angular/material
Run Code Online (Sandbox Code Playgroud)
之后我尝试使用以下命令更新所有四个:
ng update @angular/cdk @angular/cli @angular/core @angular/material -C
Run Code Online (Sandbox Code Playgroud)
更新package.json后npm i运行以安装所有软件包。这里我遇到了以下错误:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @angular-devkit/build-angular@12.1.2
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^12.2.0" from …Run Code Online (Sandbox Code Playgroud) 我在这里阅读了这个问题的一些答案,但不知怎的,我没有让它工作.
我的AndroidManifest.xml看起来像这样:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mWidas2.mWidas2" android:versionCode="1" android:versionName="1.0" android:installLocation="auto">
<uses-sdk />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application android:label="WQS" android:icon="@drawable/temporaryIcon">
<activity android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation" />
</application>
</manifest>
Run Code Online (Sandbox Code Playgroud)
我仍然可以切换到横向模式,因为在横向模式下布局变得非常难看,我想避免这种情况.非常感谢.
可能有任何重要性:我正在使用最新的Xamarin开发应用程序
所以基本上我正在遵循这个官方Xamarin指南在AppStore中发布我的应用程序.
然而,无论我尝试什么(更改签名配置文件,不同的构建选项),解决方案进程在1-2分钟后每次都会崩溃,并且不能解释究竟出错的错误(签名错误,用户中止?等等). ).
显示错误后,我总是必须重新连接到Mac.可能是什么问题呢?
编辑:
工具退出代码:1.输出:CSSM_SignData返回:800108E6 /Users/metadokentwicklung/Library/Caches/Xamarin/mtbs/builds/mWIDAS_iOS/806c20450998d745a5c8df0e4928100f/bin/iPhone/Ad-Hoc/mWIDAS_iOS.app:errSecInternalComponent mWIDAS_iOS
我尝试了发布配置文件(Ad-Hoc,AppStore,自动)和配置文件.
所以基本上现在我的应用程序配置为使用 https,因为在“版本”中它将使用自签名证书,并且显然也使用 https。
我当前的测试系统(还有一些功能)不使用 https,而是使用 http。我认为最好有某种类型的方法来检查给定的 URL 是 Http 还是 Https,并根据结果创建正确的 URLConnection。
我当前的问题是我不知道该方法到底应该是什么样子。我考虑过在连接到我的服务器的方法中使用 if 语句,但可能有更好的解决方案。
如有帮助,将不胜感激。