问题标签 [macos-big-sur]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
595 浏览

ios - 我的 iPhone 应用程序无法在 Apple Silicon Mac 上使用

在 App Store Connect > 定价和可用性中,有一个用于在 Mac 上管理 iOS 应用程序可用性的新复选框。

我可以选中名为“使此应用程序在 Mac 上可用”的复选框。
但在它下面,会显示以下消息。

版本 xxx 无法在 Mac 上使用
(xxx 是应用程序的最新版本)

我可以在 Mac 上提供该应用程序还是不能在 Mac 上提供该应用程序?
哪个是正确的,可用的复选框还是消息?

Apple 在https://developer.apple.com/support/ios-ipados-mac 中说“与 macOS 的兼容性由 Apple 决定”
那么,如果应用程序不兼容,是否不应该显示该复选框?

我的应用程序是普通的 iPhone 应用程序,不使用任何特殊功能、设备或第三方库,应用程序内购买除外。

有谁知道 iOS 应用程序在 Mac 上可用的条件?
定价和可用性的 Mac 可用性部分显示什么消息?

0 投票
1 回答
2595 浏览

macos - 侧边栏中的 Big Sur 工具栏项目

在 Big Sur 中,Xcode 和日历的工具栏项目在打开时停留在侧边栏上方,但在侧边栏折叠时在左侧保持可见。

侧边栏打开: 在此处输入图像描述

侧边栏折叠: 在此处输入图像描述

在13:55的“采用 macOS 的新外观”中,John 说“放置在分隔符 [sidebarTrackingSeparator] 之前的项目将出现在全高侧边栏上”,就像它们在 Xcode 和日历中一样。我无法完成这项工作。

这是一个演示该问题的示例项目。我使用了 IB 定义的“带侧边栏的窗口控制器”,并添加了一个工具栏项来切换侧边栏。在 NSWindowController 的子类中,我在项目.sidebarTrackingSeparator之后插入.toggleSidebar

有时这不起作用(切换按钮保留在侧边栏的右侧)。有时侧边栏切换会放在溢出菜单中:

在此处输入图像描述

我还没有看到任何关于在 WWDC 会议之外实现此工具栏设计的讨论。有没有人能让这个工作?

0 投票
2 回答
587 浏览

swift - How to run terminal command in swift from any directory?

I'm trying to creating a macOS application that that involves allowing the user to run terminal commands. I am able to run a command, but it runs from a directory inside my app, as far as I can tell. Running pwd returns /Users/<me>/Library/Containers/<My app's bundle identifier>/Data.

How can I chose what directory the command runs from?

I'm also looking for a way to get cd to work, but if I can chose what directory to run the terminal command from, I can handle cd manually.

Here is the code that I'm currently using to run terminal commands:

I'm using Xcode 12 on Big Sur.

Thanks!

0 投票
7 回答
13472 浏览

java - 找不到在 MacOS Big Sur 上安装 Apache NetBeans IDE 的 JDK

我正在尝试在我的 MacOS Big Sur 上安装 Apache NetBeans IDE,但一开始就失败了

在此处输入图像描述

这是我的 java 版本

在此处输入图像描述

正如一些人在其他答案中所说,我试图编辑 java_home 的 .profile 或 .bash_profile ,但它什么也没做。

0 投票
14 回答
33309 浏览

android-emulator - Android 模拟器不适用于 macOS Big Sur 11.3+

我已将 mac OS 升级到 Big Sur,但没有一个模拟器可以工作。似乎所有 Android 模拟器在 Mac OS Big Sur Beta 上都失败了。我删除了旧的模拟器并创建了具有不同硬件/软件的新模拟器,但没有成功。在android模拟器中引入了以下问题。

  1. ffffffffb69b4dbb:未处理的退出 1d
  2. 模拟器引擎失败
  3. adb 设备离线

https://issuetracker.google.com/issues/165038831

有没有人有办法解决吗?

编辑 27.04.2021

更新:2021 年 8 月 11 日

目前模拟器和北极狐正在工作。在 Big Sur 11.5.1 上测试

0 投票
3 回答
4506 浏览

xcode - 如何从 iOS 支持中清除 Xcode 中的垃圾文件

我曾尝试清理模拟器,但它再次占用我 Mac 上的 6gb 磁盘空间。有人可以建议手动清洁吗?

0 投票
0 回答
1579 浏览

qt - Mac 11 上的 Qt Big Sur beta 5

我正在使用 Qt QML C++ 在 Mac 和 Windows 上开发桌面应用程序。我的所有 QML C++ 应用程序在 Mac 11 Big Sur 上的应用程序启动时挂起。而普通的 Qt Widget(非 QML)应用程序可以正常工作。甚至 Qt 示例 QML 应用程序也会在启动时挂起。非常感谢任何解决此问题的指针。

Qt版本:qt 5.12

大苏尔 Beta 5

更新

Qt 5.15 按预期工作。

0 投票
1 回答
2413 浏览

mongodb - Failed to install mongo db in Mac Big Sur

I am a newbie in mongo db and trying to install in my Mac Big Sur OS. It is a public beta OS.
While install the Mongo DB, I am getting the below error:

I have the latest Xcode installed. The steps I followed are from Official MongoDB documentation url.

Please help if there is a solution.

0 投票
0 回答
304 浏览

macos - 在 Mac Big Sur (mac osx 10.11) 上为 arm64 构建 avrocpp 库

我正在尝试在 Mac Big Sur Mac OS 10.11 上为 ARM64 构建 avrocpp。安装 boost 并下载 avro-cpp 后,当我从 avro 目录运行 build.sh 进行构建时,在编译 avro 的 DataFile.cpp 时出现以下错误(以及更多错误):

所有错误都在 boost::iostream -> zlib 压缩器或解压缩器中

到目前为止,由于 Homebrew 不支持 Mac Big sur 进行 boost (boost: fix arm64 build https://github.com/Homebrew/homebrew-core/pull/59257 ),并且在构建 boost zlib 和 avrocpp 时出现错误,我正在尝试构建源代码但收到错误,这是我迄今为止尝试过的

  1. 使用 architecture=arm 构建的 boost 1.74 并且还验证了创建的库是 arm64 (lipo -archs)

  2. 在 avro 目录中,修改 build.sh 修改的 'xcode-test' 并添加架构。这是修改后的命令

    xcode-test) mkdir -p build.xcode (cd build.xcode
    && cmake -G Xcode ..
    && xcodebuild -verbose ARCHS="arm64" ONLY_ACTIVE_ARCH=YES -configuration Release ) ;;

  3. 还要更新 CMakeLists.txt 以指向我的 boost 目录。添加的行:

    项目(Avro-cpp)设置(Boost_NO_SYSTEM_PATHS TRUE)如果(Boost_NO_SYSTEM_PATHS)设置(BOOST_ROOT“/Users/a/Downloads/boost_1_74_0”)设置(Boost_DIR“/Users/a/Downloads/boost_1_74_0”)设置(BOOST_INCLUDE_DIRS“${BOOST_ROOT }/boost") 设置(BOOST_LIBRARY_DIRS "${BOOST_ROOT}/stage_mac32_64/lib") 设置(Boost_LIBRARY_DIR_RELEASE "${BOOST_ROOT}/stage_mac32_64/lib") endif (Boost_NO_SYSTEM_PATHS)

  4. 运行命令:./build.sh xcode-test 在 boost::iostream ->zlib 中返回相同的错误

  5. 下载了 zlib 源,我尝试通过指定 zlib 源来构建 boost::iostream,同样的错误。命令:

./b2 --toolset=clang --with-iostreams --layout=versioned --build-type=complete threading=multi runtime-link=static architecture=arm address-model=64 --stagedir=stage_mac32_64 stage --debug -configuration -s ZLIB_SOURCE="/Users/a/Downloads/zlib-1.2.11"

如果有人尝试在 Mac big sur 上为 arm64 构建 avrocpp 请帮助。

0 投票
1 回答
356 浏览

swift - 在 macCatalyst 中设置 tintColor

在 macOS Big Surmulticolor中,允许使用强调色,不再覆盖应用程序的自定义色调(理论上)。

喜好

这可以在一些系统应用程序中看到:

播客 音乐

(来自这条推文的图片)

但是,设置tintColor视图、窗口的属性,甚至UIView.appearance()仍然会导致 macCatalyst 中的默认蓝色。甚至onTintColor复选框 ( UISwitch) 的设置也没有任何效果。

错误

这是一个错误还是有正确的方法来做到这一点?