标签: macos-catalina

Android Studio无法打开现有项目

由于某种原因,我无法在android studio上打开任何现有项目,我可以创建一个新项目,但是每当我尝试打开一个退出的项目时,它都会打开文件查找器,而我单击该项目却没有任何反应。

香港专业教育学院试图失效和清除缓存,卸载所有插件,删除,重新下载并重新安装,但似乎没有任何作用

我正在运行macOS Catalina 10.15和Android Studio 3.4.2

图片

android intellij-idea webstorm android-studio macos-catalina

8
推荐指数
2
解决办法
992
查看次数

无法在macOS Catalina上创建MongoDB / data / db目录

尝试创建MongoDB data / db目录时出现以下错误:

sudo mkdir -p /data/db 


mkdir: /data/db: Read-only file system
Run Code Online (Sandbox Code Playgroud)

mongodb node.js macos-catalina

8
推荐指数
2
解决办法
815
查看次数

macOS Catalina 上缺少系统标头 (/usr/include)

我刚刚安装了 macOS Catalina 10.15 GM。不幸的是,我的应用程序框架都无法编译。找不到系统头文件。在 macOS Mojave 上有一个变通方法,但它不再有效,文件不会被下载(变通方法在这里解释)

键入时xcrun --show-sdk-path,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk会打印在终端上。此文件夹还包含所有必需的标题。我如何告诉 Xcode 使用这些文件?

这是我的 module.modulemap 的样子:

module PrivateNetwork [system]
{
    header "/usr/include/sys/socketvar.h"
    header "/usr/include/net/if_dl.h"
    header "/usr/include/net/if_types.h"
    header "/usr/include/net/if.h"
    header "/usr/include/netinet/in.h"
    header "/usr/include/netinet/tcp.h"

    header "/usr/include/netinet/tcp_var.h"
    header "/usr/include/netinet/tcpip.h"
    header "/usr/include/netinet/tcp_fsm.h"
    header "/usr/include/netinet/ip.h"
    header "/usr/include/netinet/ip6.h"

    export *
}
Run Code Online (Sandbox Code Playgroud)

错误: Header '/usr/include/sys/socketvar.h' not found

xcode header-files macos-catalina

8
推荐指数
2
解决办法
5091
查看次数

更新到Mac OS 10.15 Catalina后未打开Xcode 11

我在Mac OS 10.14.6上使用Xcode 11(从开发者帐户的额外文件部分下载了dmg)

今天,我将Mac os更新为10.15 catalina以使用xcode 11画布视图,但是问题是更新到mac os 10.15 Catalina之后,我无法打开xcode。当我单击xcode图标时,它会跳几秒钟,然后什么也没有发生。

我没有备份和正在进行的项目,主要的是那是我工作的办公室电脑。请帮忙!!

我尝试通过此方法进行修复,但 更新为Catalina后,无法打开Xcode项目

macos xcode macos-catalina

8
推荐指数
2
解决办法
4031
查看次数

在Catalina,Python / Python3,pip / pip3,PATH,zshrc等中使用zsh时出现问题

我最近更新为Catalina和默认的zsh。我可能在过渡期间弄乱了路径,并且我目前正在尝试整理Python3.7,pip3,命令行PATH和我的zshrc文件的位置。

似乎在/ usr / bin,/ usr / local / bin,/ usr / local / Cellar / python和/Users/[user]/.local/bin中包含潜在的冗余文件

以下是命令的复制品:

$ which python3
/usr/bin/python3
Run Code Online (Sandbox Code Playgroud)
$ which python
/usr/bin/python
Run Code Online (Sandbox Code Playgroud)
$ which pip
pip not found
Run Code Online (Sandbox Code Playgroud)
$ which pip3
/usr/bin/pip3
Run Code Online (Sandbox Code Playgroud)
$ pip3 -V
Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/usr/bin/pip3", line 10, in <module>
    sys.exit(main())
TypeError: 'module' object is not callable
Run Code Online (Sandbox Code Playgroud)
$ cat ~/.zshrc
export PATH=$PATH:/usr/local/bin:/usr/bin
Run Code Online (Sandbox Code Playgroud)
$ echo $PATH
/Users/[user]/.local/bin:/bin:/usr/bin:/usr/local/bin:/Users/[user]/anaconda3/bin:/Users/[user]/anaconda3/bin:/Users/[user]/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/[user]/anaconda3:/Library/TeX/texbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/usr/local/bin:/usr/bin:/usr/local/bin:/usr/bin
Run Code Online (Sandbox Code Playgroud)

谁能帮我解决所有这些问题?据我了解:我只需要Python2.x用于操作系统;与Catalina一起使用时,我现在应该在我的用户内存储Python3.x (不在/ usr中)?pip3是随Python3.x自动安装的(尽管我的返回一个错误),并且还应该安装在我的User中而不是/ usr中?此外,我的$ PATH仍然包含残留物,例如Anaconda,此后我将其删除了...如何/在何处更新我的$ PATH?在zshrc文件中?

python zsh path zshrc macos-catalina

8
推荐指数
1
解决办法
1709
查看次数

Catalina C ++:使用&lt;cmath&gt;标头会产生错误:全局命名空间中没有名为“ signbit”的成员

从Mojave升级到Catalina后,在环境中进行设置:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk。

我无法编译使用<cmath>标头的程序。

我尝试更改CFLAGS,CCFLAGS,CXXFLAGS以指向不变的MacOSSDK位置

Scanning dependencies of target OgreMain
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f OgreMain/CMakeFiles/OgreMain.dir/build.make OgreMain/CMakeFiles/OgreMain.dir/build
[  0%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreASTCCodec.cpp.o
cd /Users/roman/Downloads/ogre-1.12.2/build/OgreMain && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DOgreMain_EXPORTS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -I/Users/roman/Downloads/ogre-1.12.2/OgreMain/src/OSX -I/Users/roman/Downloads/ogre-1.12.2/OgreMain/include/Threading -I/Users/roman/Downloads/ogre-1.12.2/OgreMain/src -I/Users/roman/Downloads/ogre-1.12.2/build/Dependencies/include -I/Users/roman/Downloads/ogre-1.12.2/OgreMain/include -I/Users/roman/Downloads/ogre-1.12.2/build/include -I/Users/roman/Downloads/ogre-1.12.2/OgreMain -isystem /usr/local/include  -Wall -Winit-self -Wcast-qual -Wwrite-strings -Wextra -Wundef -Wmissing-declarations -Wno-unused-parameter -Wshadow -Wno-missing-field-initializers -Wno-long-long -Wno-inconsistent-missing-override  -msse -O3 -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=c++11 -o CMakeFiles/OgreMain.dir/src/OgreASTCCodec.cpp.o -c /Users/roman/Downloads/ogre-1.12.2/OgreMain/src/OgreASTCCodec.cpp
In file included from /Users/roman/Downloads/ogre-1.12.2/OgreMain/src/OgreASTCCodec.cpp:29:
In file included from /Users/roman/Downloads/ogre-1.12.2/OgreMain/src/OgreStableHeaders.h:40:
In file included from /Users/roman/Downloads/ogre-1.12.2/OgreMain/include/OgrePrerequisites.h:309:
In file included …
Run Code Online (Sandbox Code Playgroud)

c++ macos clang toolchain macos-catalina

8
推荐指数
6
解决办法
294
查看次数

在 Mac OSX 中运行 python 脚本 launchd 权限问题

我有一个简单的 python 脚本,它从我的下载文件夹中移动文件。当我通过终端运行该脚本时,该脚本运行良好。当它通过 launchd 运行时会出现问题:

Traceback (most recent call last):
  File "/Users/ben/Project/Automation/CleanDownload.py", line 11, in <module>
    for f in listdir(downloadFolder):
OSError: [Errno 1] Operation not permitted: '/Users/ben/Downloads/'
Run Code Online (Sandbox Code Playgroud)

知道为什么吗?

python macos launchd macos-catalina

8
推荐指数
2
解决办法
4928
查看次数

Wireguard-apple 构建失败并出现错误:ExternalBuildToolExecution 失败并出现非零退出代码

我使用 Go 版本 1.13、Mac Catalina 和 Xcode 11.7 进行构建。
由于以下错误,Xcode 构建过程无法完成。

Command ExternalBuildToolExecution failed with a nonzero exit code:

>ExternalBuildToolExecution WireGuardGoBridgemacOS (in target 'WireGuardGoBridgemacOS' from project 'WireGuard')
    cd /Users/mycomputer/Documents/wireguard-apple-master/WireGuard/../wireguard-go-bridge
    export ACTION=
    export ALTERNATE_GROUP=staff
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=decycle
    export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES
    export ALWAYS_SEARCH_USER_PATHS=NO
    export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY=NO
    export APPLY_RULES_IN_COPY_FILES=NO
    export APPLY_RULES_IN_COPY_HEADERS=NO
    export APP_ID_IOS=com.27net.vpnapp
    export APP_ID_MACOS=com.27net.vpnapp
    export ARCHS=x86_64
    export ARCHS_STANDARD=x86_64
    export ARCHS_STANDARD_32_64_BIT="x86_64 i386"
    export ARCHS_STANDARD_32_BIT=i386
    export ARCHS_STANDARD_64_BIT=x86_64
    export ARCHS_STANDARD_INCLUDING_64_BIT=x86_64
    export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx …
Run Code Online (Sandbox Code Playgroud)

xcode building ios wireguard macos-catalina

8
推荐指数
1
解决办法
4111
查看次数

pyenv:构建失败(OS X 10.15.7 使用 python-build 20180424)

我刚刚在 macOS Catalina 上安装了 pyenv,并且使用命令收到以下错误消息pyenv doctor

Cloning /Users/joel.rontynen/.pyenv/plugins/pyenv-doctor/bin/.....
Installing python-pyenv-doctor...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 10.15.7 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/tl/_2700jnn5vj0q5ryygn4c4ww0000gp/T/python-build.20201014132428.46509
Results logged to /var/folders/tl/_2700jnn5vj0q5ryygn4c4ww0000gp/T/python-build.20201014132428.46509.log

Last 10 log lines:
checking readline/readline.h, presence... no
checking for readline/readline.h,... no
checking readline/rlconf.h usability... yes
checking readline/rlconf.h presence... yes
checking for readline/rlconf.h... yes
checking for SSL_library_init in -lssl... no
configure: WARNING: OpenSSL <1.1 not installed. …
Run Code Online (Sandbox Code Playgroud)

pyenv macos-catalina

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

Mac Catalina 上 Visual Studio Code 的集成终端中出现“zsh:未找到命令:ng”

较新的 Mac(Catalina在我的例子中为操作系统)现在有默认的Z Shellaka zsh。使用 Maczsh终端窗口,我已成功进行Angular 11.0.5全局安装并创建了一个项目。我正在使用nvm 0.32.2node 10.23.0

Visual Studio Code但是,在 VS Code 中打开并导航到我的项目时integrated terminal,我使用任何 ng 命令都会收到此错误消息,例如尝试生成组件:

zsh: command not found: ng

有谁知道如何正确设置 Visual Studio Codeintegrated terminal以正确识别 ng 命令zsh

我在这里找到了一种可能的解决方法/sf/answers/4100887661/,但它使用了第三方工具,我希望尽可能避免使用第三方工具。没有其他已知的方法来解决这个问题吗?

macos zsh visual-studio-code angular macos-catalina

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