小编ara*_*ind的帖子

链接的框架“Pods_Runner.framework”缺少此目标所需的一个或多个架构:x86_64

我在通过 M1 Macbook pro 在 IOS 模拟器中构建 flutter 应用程序时遇到以下错误。我正在使用 VS 代码进行编辑。\n在使用连接到 Mac 的 iPhone 进行构建时,我的构建没有出现任何问题。\n知道如何解决此问题。

\n

在此输入图像描述

\n
Launching lib/main.dart on IPhone 13 Simulator in debug mode...\nlib/main.dart:1\nXcode build done.                                            1.5s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n    objc[10488]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ffeb6b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1048c42c8). One of the two will be used. Which one is undefined.\n    objc[10488]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1ffeb6be0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1048c4318). One of the two will be used. Which …
Run Code Online (Sandbox Code Playgroud)

xcode ios dart visual-studio-code flutter

21
推荐指数
3
解决办法
2万
查看次数

生命周期配置未涵盖插件执行:org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain

我正在使用 m2e 构建一个 java 项目。我需要使用JAVA 版本 1.6。所以我正在尝试配置工具链插件来实现它。通过参考下面的链接。

https://maven.apache.org/guides/mini/guide-using-toolchains.html

但在 Eclipse 中它抛出以下错误。

生命周期配置未涵盖插件执行:org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain (execution:default,phase:validate)pom.xml/Replenishment line 98 Maven项目构建生命周期映射问题

我引用了该链接 ,但我没有得到适当的清晰度。下面是用于配置工具链插件的代码片段。

在 pom.XML 中

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-toolchains-plugin</artifactId>
        <version>1.1</version>
        <lifecycleMappingMetadata>
               <pluginExecutions>
                  <pluginExecution>
                      <pluginExecutionFilter>
                          <groupId>
                              org.apache.maven.plugins
                          </groupId>
                          <artifactId>
                              maven-toolchains-plugin
                          </artifactId>
                          <versionRange>
                              [1.1,)
                          </versionRange>
                          <goals>
                              <goal>toolchain</goal>
                          </goals>
                      </pluginExecutionFilter>
                      <action>
                          <ignore></ignore>
                      </action>
                  </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
        <executions>
          <execution>
            <goals>
              <goal>toolchain</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <toolchains>
            <jdk>
              <version>1.6</version>
              <vendor>sun</vendor>
            </jdk>
          </toolchains>
        </configuration>
    </plugin>
Run Code Online (Sandbox Code Playgroud)

和我的 toolchains.xml

<?xml version="1.0" encoding="UTF8"?>
<toolchains>
  <!-- JDK toolchains -->
  <toolchain>
    <type>jdk</type>
    <provides> …
Run Code Online (Sandbox Code Playgroud)

java xml eclipse maven maven-toolchains-plugin

7
推荐指数
2
解决办法
2万
查看次数

Xcode 构建完成。无法构建 iOS 应用程序 - Flutter 项目

将 flutter 升级到最新稳定版本后,我收到以下错误。\n执行了所有可能的命令来清除捕获并安装 pod。

\n
Xcode build done.                                           12.1s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n    objc[3394]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1063384f8). One of the two will be used. Which one is undefined.\n    objc[3394]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106338548). One of the two will be used. Which one is undefined.\n    objc[3394]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1f5995f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106338598). One of the two will …
Run Code Online (Sandbox Code Playgroud)

xcode ios flutter

7
推荐指数
1
解决办法
1232
查看次数

如何在Eclipse中的m2e/Installed maven中配置工具链插件

目前我在我的Windows机器上安装了maven(Apache Maven 3.3.9) 和Java(Java版本:1.8.0_91).我有一个使用Java Version 1.6.0_31开发的java应用程序.

由于Apache maven(3.3.9)与之前版本的Java(1.8之前的版本)不直接兼容,因此我已经包含了工具链插件来编译和运行Java 1.6项目.我可以使用命令提示符进行成功的构建.

但是当我尝试使用eclipse与eclipse m2e插件构建相同的项目或使用eclipse-> Windows-> Preferences-> Maven-> Installations添加外部maven(3.3.9)时,我收到以下错误.

[WARNING] 
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Expected root element 'settings' but found 'toolchains' (position: START_TAG seen ...OOLCHAINS/1.1.0 http://maven.apache.org/xsd/toolchains-1.1.0.xsd">... @45:114)  @ U:\POC\Repo\.m2\toolchains.xml, line 45, column 114
[WARNING] 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Replenishment Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------ …
Run Code Online (Sandbox Code Playgroud)

java eclipse apache maven

5
推荐指数
1
解决办法
4931
查看次数

jvectormap 中单击事件时自动缩放区域

我有澳大利亚的 jvectormap 。单击地图中的特定州时,它应该缩小同一地图中的该特定州。有没有什么方法可以在不使用多地图的情况下实现这一目标。

jquery jvectormap

5
推荐指数
1
解决办法
4511
查看次数

application.xml不存在.maven EAR构建期间出错

我正在尝试构建一个内部有两个war文件的ear项目.在构建EAR时,我收到错误,因为"application.xml不存在".但我已将application.xml放在项目META INF文件夹中.请在下面找到代码.并建议解决方案来解决这个问题.

下面是我的POM.XML

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>au.com.mercury</groupId>
  <artifactId>ReplenishmentR4</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>ear</packaging>
  <build>
  <plugins>
    <plugin>
      <artifactId>maven-ear-plugin</artifactId>
      <version>2.6</version>
      <configuration>
        <applicationXML>src/main/application/META-INF/application.xml</applicationXML>
        <generateApplicationXml>false</generateApplicationXml>
        <encoding>UTF-8</encoding>
        <defaultLibBundleDir>lib/</defaultLibBundleDir>
        <filtering>true</filtering>
        <modules>
          <webModule>
            <groupId>au.com.mercury</groupId>
            <artifactId>Replenishment</artifactId>
            <bundleFileName>Replenishment.war</bundleFileName>
          </webModule>
          <webModule>
            <groupId>au.com.mercury</groupId>
            <artifactId>ReplenishmentR3</artifactId>
            <bundleFileName>ReplenishmentR3.war</bundleFileName>
          </webModule>
        </modules>
      </configuration>
    </plugin>
    <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
  </plugins>
   <finalName>ReplenishmentR4</finalName>
</build>

<dependencies>

  <dependency>
    <groupId>au.com.mercury</groupId>
    <artifactId>Replenishment</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <type>war</type>
  </dependency>
  <dependency>
    <groupId>au.com.mercury</groupId>
    <artifactId>ReplenishmentR3</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <type>war</type>
  </dependency>
  </dependencies>
</project>
Run Code Online (Sandbox Code Playgroud)

下面是我的application.xml

<?xml version="1.0" encoding="UTF-8"?>
<application>
  <module>
    <web>
      <web-uri>Replenishment.war</web-uri>
      <context-root>/Replenishment</context-root>
    </web>
  </module>
  <module>
    <web>
      <web-uri>ReplenishmentR3.war</web-uri>
      <context-root>/ReplenishmentR2</context-root> …
Run Code Online (Sandbox Code Playgroud)

java xml maven

4
推荐指数
1
解决办法
4021
查看次数

Junit maven 构建错误(maven-surefire-plugin:2.19.1:test failed: There was an error in the fork process)

我通过引用链接创建了一个示例 struts 2 项目和 J-unit 测试用例 。

下面是我的 POM 文件。

<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>au.com.woolworths</groupId>
  <artifactId>struts_junit</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>
  <name>struts_junit Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <!-- https://mvnrepository.com/artifact/junit/junit -->
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
    </dependency>
    <dependency>
       <groupId>org.apache.struts</groupId>
       <artifactId>struts2-core</artifactId>
       <version>2.3.4</version>
      </dependency>
     <dependency>
       <groupId>org.apache.struts</groupId>
       <artifactId>struts2-junit-plugin</artifactId>
       <version>2.3.4</version>
      </dependency>
     <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>3.0.1</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet.jsp</groupId>
        <artifactId>jsp-api</artifactId>
        <version>2.2</version>
    </dependency>
  </dependencies>

  <build>
    <finalName>struts_junit</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.5.1</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>3.0.0</version>
        <configuration>
          <warSourceDirectory>WebContent</warSourceDirectory>
        </configuration>
      </plugin>
      <plugin> …
Run Code Online (Sandbox Code Playgroud)

java eclipse junit struts2 maven

2
推荐指数
1
解决办法
9189
查看次数

VS代码spring boot扩展中的JDK错误

我的 Spring Boot 的 vscode 扩展无法正常启动。

当我将配置设置为 : 时"spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk1.8.0_311",我从扩展中收到以下错误。

Error trying to find JVM: Error: Command failed: C:\Program Files\Java\jdk1.8.0_311\bin\java.exe --list-modules
Unrecognized option: --list-modules
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Run Code Online (Sandbox Code Playgroud)

当我将配置设置为 : 时 "spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk1.8.0_311\\jre",我从扩展中收到以下错误。

Error trying to find JVM: Error: Command failed: C:\Program Files\Java\jdk1.8.0_311\jre\bin\java.exe --list-modules
Unrecognized option: --list-modules
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program …
Run Code Online (Sandbox Code Playgroud)

java spring-tool-suite visual-studio-code

2
推荐指数
1
解决办法
2600
查看次数

CocoaPods 找不到 pod 的兼容版本。更改了开发 Pod 内的依赖项“Firebase/Firestore”的约束

升级 flutter 和最新的 flutter 软件包后,我遇到以下错误。

[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
  In snapshot (Podfile.lock):
    Firebase/Firestore (= 8.15.0)

  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 3.4.5, which depends on
      Firebase/Firestore (= 9.4.0)


You have either:
 * changed the constraints of dependency `Firebase/Firestore` inside your development pod `cloud_firestore`.
   You should run `pod update Firebase/Firestore` to apply changes you've made.

[!] Automatically assigning platform `iOS` with version `12.0` on target `Runner` because no platform was specified. Please specify …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods flutter

2
推荐指数
1
解决办法
3061
查看次数

Codemagic IOS 构建失败 | 关系“设备”是必需的,但此请求未提供

POST https://api.appstoreconnect.apple.com/v1/profiles返回 409:关系是必需的,但未提供。- 关系“设备”是必需的,但此请求未提供。

iOS 构建失败

ios flutter codemagic

2
推荐指数
1
解决办法
561
查看次数

无法在Windows中更改Java版本

以前,我在计算机上使用Java 1.8。但是现在我需要使用Java 1.6。因此,我更改了系统环境变量中的以下值。

JAVA_HOME

U:\ POC \ jdk1.6.0_31

路径

U:\ POC \ jdk1.6.0_31 \ bin \ %JAVA_HOME%/ bin

我也重新启动了系统

即使在此之后,它也会在我的命令提示符下显示Java版本为1.8。

命令提示符

谁能提供有关解决此问题的建议?

java windows

0
推荐指数
3
解决办法
2980
查看次数

如何在Windows操作系统中的文件夹下的文件中搜索文本

在我的Windows机器中,我有一个文件夹,其中包含多个文件夹和多个文件,每个文件夹下都有不同类型的文件示例.txt、.properties、.xml、.sh、.bat 等...

现在我想识别文件夹内的文件中是否存在特定文本。

例如:我想识别包含该单词的所有文件

“au.com.galaxy”

有没有快捷方式可以做到这一点,而无需打开和搜索每个文件?

windows directory search text file

0
推荐指数
1
解决办法
3729
查看次数