标签: apple-silicon

在旧版 iOS 模拟器上运行时,出现错误“无法启动 launchd_sim:无法绑定到会话,launchd_sim 可能已崩溃或退出响应”

我正在我的 M1 MacBook Pro 上运行 Xcode 12.2 (12B45b)。每当我尝试在较旧的 iOS 上运行模拟器时,例如:

\n

iPhone 11 Pro (13.0)

\n

它不起作用。Xcode 弹出此错误:

\n

无法启动 launchd_sim...

\n

当我按下 时Details,会弹出一个屏幕,显示:

\n
Details\n\nFailed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding\nDomain: com.apple.SimLaunchHostService.RequestError\nCode: 4\n--\n\n\nSystem Information\n\nmacOS Version 11.0 (Build 20A2411)\nXcode 12.2 (17535) (Build 12B45b)\nTimestamp: 2020-12-06T12:41:11-08:00\n
Run Code Online (Sandbox Code Playgroud)\n

但是,如果我运行较新的 iOS(例如 14.2),它可以完美运行。这是随 Xcode 预装的运行时。

\n

工作完美

\n

我查看了这个问题,iOS Simulator is Crashing on Startup,但答案几乎没有用。开发论坛上也有其他人遇到了同样的问题,但也没有人找到解决方案。

\n

编辑: Xcode 12.2 的发行说明中似乎提到了这一点:

\n
\n

iOS 13、tvOS 13 和 …

xcode ios ios-simulator apple-silicon

15
推荐指数
3
解决办法
1万
查看次数

Apple M1 芯片上的 Apache Directory Studio

我在 Apple 芯片 MBP M1 Max 上运行 Apache Directory Studio 时遇到问题。

错误:

2021-12-03 12:42:07.497 ApacheDirectoryStudio[5675:42763] Error loading /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/MacOS/libjli.dylib: 
 dlopen(/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/MacOS/libjli.dylib, 0x0109): 
 tried: '/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/MacOS/libjli.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')),
  '/usr/lib/libjli.dylib' (no such file)
Run Code Online (Sandbox Code Playgroud)

看起来Homebrew有 ApacheDirectoryStudiox86_64版本,但 Java 是arm64.

请帮忙。

java apple-silicon apple-m1

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

Macbook m1 和 python 库

新的 macbook m1 适合数据科学吗?

数据科学 python 库,如 pandas、numpy、sklearn 等是否在 macbook m1(Apple Silicon)芯片上工作,与上一代基于英特尔的 macbook 相比有多快?

python pandas scikit-learn data-science apple-silicon

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

如何在 Apple Silicon Mac 上运行 Elasticsearch 6?

为了开发应用程序,我需要在 Apple Silicon Mac 上运行 Elasticsearch 6。

我尝试用 Docker 运行它。阅读Docker Desktop for Apple Silicon,我安装了 Rosetta2:

softwareupdate --install-rosetta
Run Code Online (Sandbox Code Playgroud)

并添加了--platform linux/amd64命令行选项。

跑步:

docker run -d --platform linux/amd64 --name elasticsearch  -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.8.18
Run Code Online (Sandbox Code Playgroud)

我收到有关AVX 指令集的警告:

OpenJDK 64-Bit Server VM warning: UseAVX=2 is not supported on this CPU, setting it to UseAVX=0
Run Code Online (Sandbox Code Playgroud)

所以我添加了命令行选项 : -e "ES_JAVA_OPTS=-XX:UseAVX=0",但我仍然得到:

[2021-08-22T00:06:20,727][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [unknown] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.bootstrap.BootstrapException: java.io.IOException: Cannot run program "/usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller": error=0, Failed to …
Run Code Online (Sandbox Code Playgroud)

macos elasticsearch docker apple-silicon

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

如何为 M1 和 Intel 构建 openssl?

我有一个需要使用 Libcrypto 的项目 - 我有两个版本的 Libcrypto(为 ARM64 构建的 libcrypto.a(来自 OpenSSL 1.1.1))和(针对 Intel 的 lcrypto.a(来自 OpenSSL 1.0.2))。撇开拥有两个不同版本是否是良好实践的问题不谈,我可以说,如果我包含 libcrypto.a,那么我可以在 M1 上构建和运行,并且它在 M1 上运行良好。如果我包含 lcrypto.a,那么我可以在 Intel 上构建和运行,并且它在 Intel 上运行良好。我不能做的就是将它们都包括在内(链接器错误 - The linked library 'lcrypto.a' is missing one or more architectures required by this target: arm64.) - 如果我不能将它们都包括在内,那么我就无法构建一个胖二进制文件,并且我的应用程序并不是完全有用!

我的问题是如何将两者都包含在我的项目中 - 或者我在哪里可以获得(以及如何包含)Libcrypto 的胖版本?我看过这个https://github.com/balthisar/openssl-xcframeworks/releases和这个https://developer.apple.com/forums/thread/670631但我一无所知。我我构建了一个 Fat Binary - 但我认为我构建的 Fat Binary 不适用于任何一种架构!

macos openssl libcrypto apple-silicon

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

在 TestFlight 的 Apple Silicon Mac 上部署 iPhone 和 iPad 应用程序

随着Apple Silicon Mac 上 iPhone 和 iPad 应用程序的出现,我想知道如何分发我们应用程序的 Beta 版本以在新硬件上进行测试,而不向公众开放。

我们已禁止公开下载我们的应用程序,因为我们不确定它们是否能达到我们的标准。

Mac 上的 iOS 应用程序可用性 所有兼容的 iOS 应用程序都将自动在 Mac 上提供,或者您也可以选择下面的单个应用程序。如果您单击“不提供”,则您现有的任何应用程序都不会在 Mac 上提供。

有没有办法在TestFlight上或通过AppCenter等第三方服务启用此功能?

谢谢任何帮助,将不胜感激!

ios testflight apple-silicon

13
推荐指数
1
解决办法
1948
查看次数

在 macbook pro M1 上安装 Tensorflow 时出现“zsh:非法硬件指令 python”

我正在尝试让 tensorflow 在我的 MacBook pro M1 上工作。但是,在尝试导入时,我不断收到以下错误:zsh: illegal hardware instruction python

我已通过此链接下载并安装了 tensorflow 。

这些是我的安装步骤:

  • 安装一个 venv: python3 -m venv venv.
  • install_venv.sh(位于下载的文件夹内)文件拖到终端,-p在末尾添加。
  • 选择 venv 的目录作为应安装 tensorflow 的位置。
  • 激活 venv。
  • 输入“蟒蛇”。
  • 尝试导入 tensorflow: import tensorflow as tf

我正在使用 Python 3.8.2。

我看过一些教程,这种方法确实有效,所以我不知道这里有什么问题。

python python-3.x tensorflow macos-big-sur apple-silicon

13
推荐指数
3
解决办法
1万
查看次数

Apple Silicon (M1) 上的 React Native pod 安装失败

我购买了配备 M1 芯片的新 Macbook Pro。

\n

我尝试运行我的 React Native 项目,但卡在pod install 上。

\n

之后,我创建了一个空项目并尝试仍然遇到相同的错误。

\n
### Command\n\n```\n/opt/homebrew/Cellar/cocoapods/1.10.1/libexec/bin/pod install\n```\n\n### Report\n\n* What did you do?\n\n* What did you expect to happen?\n\n* What happened instead?\n\n\n### Stack\n\n```\n   CocoaPods : 1.10.1\n        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]\n    RubyGems : 3.0.3\n        Host : macOS 11.0.1 (20B29)\n       Xcode : 12.4 (12D4e)\n         Git : git version 2.24.3 (Apple Git-128)\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib\nRepositories : \n```\n\n### Plugins\n\n```\ncocoapods-deintegrate : 1.0.4\ncocoapods-plugins     : 1.0.0\ncocoapods-search      : 1.0.0\ncocoapods-trunk       : 1.5.0\ncocoapods-try         : …
Run Code Online (Sandbox Code Playgroud)

cocoapods react-native apple-silicon apple-m1

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

Apple Silicon 上的 Rails 和 MySQL

有谁能够通过 Apple Silicon 上的 mysql2 gem 让 Rails 与 MySQL 一起运行吗?我正在使用 Ruby 2.5.3 和 Rails 5.2.3,但很想听到任何版本的成功消息。目前我遇到了 mysql2 gem 安装失败的问题:

linking shared-object mysql2/mysql2.bundle
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mysql2.bundle] Error 1
Run Code Online (Sandbox Code Playgroud)

谢谢你!

mysql homebrew ruby-on-rails mysql2 apple-silicon

13
推荐指数
3
解决办法
3327
查看次数

在 Apple Silicon (M1) 中安装 Pod 时出错

我正在运行的命令是

brew install cocoapods     
Run Code Online (Sandbox Code Playgroud)

警告:cocoapods 1.11.2_2 已安装且是最新的。要重新安装 1.11.2_2,请运行:brew reinstall cocoapods ~ % alias pod='arch -x86_64 pod'

以下是错误:

/opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/resolver/conflict.rb:47:in `conflicting_dependencies': undefined method `request' for nil:NilClass (NoMethodError)

    [@failed_dep.dependency, @activated.request.dependency]
                                       ^^^^^^^^
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/exceptions.rb:61:in `conflicting_dependencies'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/exceptions.rb:55:in `initialize'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/resolver.rb:193:in `exception'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/resolver.rb:193:in `raise'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/resolver.rb:193:in `rescue in resolve'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/resolver.rb:191:in `resolve'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/request_set.rb:411:in `resolve'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/request_set.rb:423:in `resolve_current'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems.rb:230:in `finish_resolve'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems.rb:287:in `block in activate_bin_path'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems.rb:285:in `synchronize'
    from /opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems.rb:285:in `activate_bin_path'
    from /opt/homebrew/Cellar/cocoapods/1.11.2_2/libexec/bin/pod:25:in `<main>'
/opt/homebrew/Cellar/ruby/3.1.1/lib/ruby/3.1.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:317:in `raise_error_unless_state': Unable to satisfy the following requirements: (Gem::Resolver::Molinillo::VersionConflict) …
Run Code Online (Sandbox Code Playgroud)

ruby cocoapods swift apple-silicon

13
推荐指数
1
解决办法
1万
查看次数