将 mac OS 更新到Catalina 10.15.4 和 XCode 11.4 以及 VS 2019 16.5.1后
,我无法从 VS 与 mac 配对,VS 中出现错误:
“尝试启动 Broker 时发生错误... ”。
日志文件中的信息:
“无法安装代理。
已建立与“192.168.233.1”的连接...
服务器从 ConnectingState 更改为 DisconnectingState 到 192.168.233.1 (192.168.233.1)。正在
从 192.168.233.1 断开连接...
服务器从 DisconnectingState 更改为 DisconnectedState 到 192.168.233.1 (192.168.233.1)。
已建立与“192.168.233.1”的连接。
尝试启动 Broker 时发生错误...
客户端 vs - 30 秒内没有发送数据包。正在
发送 Ping到服务器来维持“Keep Alive”
我认为连接 macOS 的问题,因为
Apple 将 bash 替换为 zsh 作为 macOS Catalina 中的默认 shell。
我尝试执行后续步骤来解决该问题:
1) 删除 Mac 和 Windows 上的 XMA 文件夹: …
我有一个简单的 C++ 程序,可以导入cmath.
#include <cmath>
int main() {
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用以下命令编译它。
clang++ -o test main.cpp -std=c++14
Run Code Online (Sandbox Code Playgroud)
但是,我收到以下错误
In file included from main.cpp:2:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error:
no member named 'signbit' in the global namespace
using ::signbit;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error:
no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error:
no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
~~^
/usr/local/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
^
In file included …Run Code Online (Sandbox Code Playgroud) “在‘/’中找不到‘com.apple.pkg.cltools_executables’的收据”
在 MacOS (Catalina) 的 VS Code bash 终端中为 angular 9 项目运行“npm install”时抛出上述错误
Package.json 依赖项:
"@angular/animations": "~9.1.1",
"@angular/common": "~9.1.1",
"@angular/compiler": "~9.1.1",
"@angular/core": "~9.1.1",
"@angular/platform-browser": "~9.1.1",
"@angular/platform-browser-dynamic": "~9.1.1",
"@angular/router": "~9.1.1",
"rxjs": "~6.5.4",
"tslib": "1.10.0",
"zone.js": "0.10.2"
Run Code Online (Sandbox Code Playgroud) 我使用新的闪亮的WidgetKit制作了一个小部件。它看起来不错并且按预期工作。然后,我将其所有逻辑放入单独的框架中,以在扩展和主应用程序之间共享常量值,并提供可单元测试的目标。引入框架后,SwiftUI 预览停止工作。我收到错误:Cannot preview in this file - Could not find host for previews。WidgetPreviewContext似乎不起作用。我想知道为什么。难道是因为我使用的是 macOS Catalina 10.15.6?
我刚刚安装了 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
关于我的设置的一些话:
MacOs Catalina 10.15.2
谈论git我桌面上的项目文件夹,它与 iCloud Drive 同步桌面和文档文件夹选项已启用
我注意到以下情况时不时发生一段时间。昨天,我将 MacBook Pro 备份到了MacOs Catalina 10.15.2,这似乎加剧了我在git初始化的项目文件夹中注意到的以下特性:
很多时候,当我deleted files从我local worktree那里开始时,它们随机开始重新出现在工作树中(有时甚至一天或更长时间后)作为untracked files.
其次,很经常地,我现有的文件似乎突然出现duplicated- 它们的副本带有数字后缀,例如文件 foo 突然出现foo 2,而文件 bar 出现bar 6. 然后它们也出现在git statusas 中untracked files。
工作树索引中出现重复项的示例
我还在.git文件夹内观察到了这种行为。
.git 文件夹中出现重复项的示例
* 编辑:值得注意的是,<filename> 2重复似乎源于上一次,有时甚至是一个月前(参见上面 .git 文件夹截图中的“配置 2”)。我还注意到(但我提供的图片上没有显示)有时数字后缀是一个随机的“6”,例如没有数字后缀序列(例如 1-5)导致重复的文件名与数字 6 .
我时不时地观察到这种情况发生,但今天它无处不在。可能是这个问题特别出现在我做一些git诸如此类的操作时git commit git reset。
我的假设是,这一定与.git不能很好地使用 …
我刚刚将我的 mac 更新到Catalina 10.15.2,但我无法运行 MongoDB。
当我发送命令时,mongo我收到此消息
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
Run Code Online (Sandbox Code Playgroud)
使 Mongo 工作的唯一方法是重新启动 Mac。
如果我使用命令检查进程,ps我看不到进程已经启动并且端口27017可用。
我已经尝试运行以下命令:
brew tap mongodb/brew
brew reinstall mongodb-community
brew services restart mongodb-community
Run Code Online (Sandbox Code Playgroud)
如果我运行以下命令:
ps aux | grep -v grep | grep mongod
Run Code Online (Sandbox Code Playgroud)
没有结果。
我mongod之前mongo也试过运行,结果是:
2019-12-18T12:17:45.916+0100 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify …Run Code Online (Sandbox Code Playgroud) 系统:
mac osx catalina (10.15.5)
gfortran 9.3.0 (from homebrew)
gdb 9.2 (from homebrew)
Run Code Online (Sandbox Code Playgroud)
经历并遵循以下说明:https : //sourceware.org/gdb/wiki/PermissionsDarwin
试图调试这个程序只是为了学习:
! test.f90
program main
integer :: val
val = 1
print *, val
val = 2
print *, val
end program main
Run Code Online (Sandbox Code Playgroud)
编译:
gfortran test.f90 -Og -g -o test
Run Code Online (Sandbox Code Playgroud)
然后在终端
~/Coding/gdb
> ./test
1
2
~/Coding/gdb $
> gdb test
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is …Run Code Online (Sandbox Code Playgroud) 我使用的是 cocos2d-x v4、macOS Catalina 10.15.6、Android Studio 4.1。
我用 cocos2d-x v4 做了一个项目。
我正在使用 Android Studio 构建一个 android 应用程序。
直到几天前,它才奏效。但是在将 Android Studio 更新到 4.1 后,一切都出错了。当我打开项目时,它在 Android Studio 的底部显示 Scanning files to index .. 并且它永远不会结束。
左侧的 Android 选项卡总是说正在加载 ..
我尝试了以下方法,但没有一个解决了问题。
当我卸载 Android Studio 时,我运行以下命令来删除所有旧文件。
rm -Rf /Applications/Android\Studio.app
rm -Rf ~ / Library / Preferences / AndroidStudio *
rm ~ / Library / Preferences / com.google.android.studio.plist
rm -Rf ~ / Library / Application \ Support / AndroidStudio …Run Code Online (Sandbox Code Playgroud) 较新的 Mac(Catalina在我的例子中为操作系统)现在有默认的Z Shellaka zsh。使用 Maczsh终端窗口,我已成功进行Angular 11.0.5全局安装并创建了一个项目。我正在使用nvm 0.32.2和node 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-catalina ×10
macos ×6
angular ×2
zsh ×2
android ×1
broker ×1
clang ×1
clang++ ×1
cmath ×1
cocos2d-x ×1
database ×1
fortran ×1
gdb ×1
git ×1
header-files ×1
icloud-drive ×1
ios ×1
mongodb ×1
npm-install ×1
package.json ×1
swiftui ×1
widgetkit ×1
xamarin ×1
xcode ×1
xcode12 ×1