我将我的macOS更新到High Sierra,现在通过我的iOS应用程序中的cocoapods安装依赖项.但我面临以下错误.
XXXXXXXXX:MyProject CompanyName$ pod update
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
Run Code Online (Sandbox Code Playgroud)
比我试过
Zubair-mac-mini:~ sdsol$ gem install cocoapods
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
Zubair-mac-mini:~ sdsol$
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激.
我在High Sierra上使用Xcode版本9.0.1(9A1004).运行时,tns doctor
我收到以下警告:
WARNING: Xcode is not installed or is not configured properly.
You will not be able to build your projects for iOS or run them in the iOS Simulator.
To be able to build for iOS and run apps in the native emulator, verify that you have installed Xcode.
Run Code Online (Sandbox Code Playgroud)
如果我运行安装脚本,我得到:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Xcode is not installed or not configured properly. Download, …
Run Code Online (Sandbox Code Playgroud) 由于php 5.6自2019年1月1日起停售,因此已从自制软件中删除。
即使它不在核心中,也如何使用自制软件安装它?
我正在尝试在High Sierra 10.13.6版本上将Xcode 10.1更新为10.2。
App Store窗口显示了更新按钮,但问题是单击该按钮后,左上角的圆圈旋转了几个小时,没有其他反应!
由于两个版本之间的差异不是很大,因此自然必须在一段时间后下载并安装此更新,但实际上并非如此!
请问如何解决这个问题?
在新的iOS 11 Safari和MacOS High Sierra Safari上,查看是否window.localStorage.setItem('test', 1);
(请参阅/sf/answers/1241920011/)抛出错误的技巧不再有效,因为它不再抛出错误,它还可以正确设置localStorage项.有没有人想出任何其他方式来检查新版Safari中的隐私浏览模式?
所以macOS High Sierra 10.13现在配备了PHP 7.1.配置Apache时我也/etc/php.ini
从/etc/php.ini.default
文件中创建了一个新的,确保在重新启动Apache后检查是否由PHP加载,但是当你运行时,macOS 10.13附带的Xdebug扩展版本似乎没有加载或显示phpinfo();
我的php.ini肯定被加载:
$ php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Run Code Online (Sandbox Code Playgroud)
这是我的/etc/php.ini在配置Xdebug时的样子:
[xdebug]
zend_extension = "/usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
Run Code Online (Sandbox Code Playgroud)
[更新,修复了这里的拼写错误...]
但是,Xdebug不加载和检查php -i
没有结果:
$php -i | grep xdebug
PHP Warning: Method xdebug_start_function_monitor() cannot be a NULL
function in Unknown on line 0
PHP Warning: xdebug: Unable to register functions, unable to load in Unknown on line 0
Segmentation fault: …
Run Code Online (Sandbox Code Playgroud) 我最近升级到macOS 10.13 High Sierra,并在尝试安装更新版本的Perl(5.26.1)后遇到问题.问题的关键在于cpan/DB_File
macOS 10.13 High Sierra(家用笔记本电脑)上的自检失败,但在macOS 10.12 Sierra(工作笔记本电脑)上取得了成功.
以下是显示失败的安装日志部分:
../cpan/Config-Perl-V/t/30_plv5240.t ............................... ok
../cpan/Config-Perl-V/t/31_plv52511.t .............................. ok
../cpan/DB_File/t/db-btree.t ....................................... ok
Use of uninitialized value $value in string eq at t/db-hash.t line 224.
Use of uninitialized value $values[0] in string eq at t/db-hash.t line 224.
Use of uninitialized value $value in lc at t/db-hash.t line 224.
Use of uninitialized value $h{""} in string eq at t/db-hash.t line 243.
Use of uninitialized value in numeric eq (==) at t/db-hash.t line 252. …
Run Code Online (Sandbox Code Playgroud) 我在Mac上运行Jenkins作为CI服务器.它在macOS 10.12上正常运行,具有用户jenkins的典型设置.
今天我将macOS升级到10.13(High Sierra).升级过程完成后,Jenkins无法启动.此外,系统上没有用户jenkins.所有Jenkins文件都存在,但设置 - >用户和组中没有jenkins用户.如果我尝试在终端中使用jenkins用户,例如,如果我尝试将文件所有权更改为带有chown的jenkins,我会得到:
chown: jenkins: illegal user name
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
我无法在macOS High Sierra上安装Valgrind.它无法通过brew
.我试过3.10.之后make install
,我收到这条消息:
configure: error: Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x and 14.x (Mac OS X 10.6/7/8/9/10)
Run Code Online (Sandbox Code Playgroud)
Homebrew说:
valgrind: This formula either does not compile or function as expected on macOS
versions newer than Sierra due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.
Run Code Online (Sandbox Code Playgroud) 我刚刚在我的macOS v10.13.4上安装了MySQL Ver 14.14 Distrib 5.7.22和Homebrew.
我跑了命令:
brew install mysql
安装完成后,按照Homebrew的指示,我运行了命令:
mysql_secure_installation
并返回错误:Error: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql/5.7.22/lib/plugin/caching_sha2_password.so, 2): image not found
我尝试了一些事情,比如在my.cnf文件中将default_authentication_plugin更改为mysql_native_password,但它仍然会抛出相同的错误.
接下来我试着跑:
mysql_upgrade -u root
我再次抛出同样的错误mysql_upgrade: Got error: 2059: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql/5.7.22/lib/plugin/caching_sha2_password.so, 2): image not found while connecting to the MySQL server
Upgrade process encountered error and will not continue.
任何帮助表示赞赏.