macos-sierra

Cocoapods Installation Error on macOS Sierra 10.12.1

人走茶凉 提交于 2019-12-03 14:34:17
I'm getting this error when i'm trying to install cocoapods : $ sudo gem install cocoapods ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy_match I have gem version 2.6.7 installed, macOS 10.12.1 can anyone help please..or have instructions how to install cocoapods on 10.12.1 I have a similar problem and it solved by using 2nd solution, try to run these commands either in solutions 1 or 2 at terminal I'm running osx 10.12.1 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod Solution 1: step 1 : sudo nvram boot-args=

OpenSSL not found on MacOS Sierra

孤者浪人 提交于 2019-12-03 12:53:51
I am trying to install a PHP MongoDB driver but the installation is failing because it cannot locate the OpenSSL. /Users/username/mongo-php-driver/src/libmongoc/src/mongoc/mongoc-crypto-openssl.c:24:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [src/libmongoc/src/mongoc/mongoc-crypto-openssl.lo] Error 1 I read that this has something to do with the latest version of MacOS? Is there a way to do it, as I really need to install this driver. This is the only solution that worked for me. cd /usr/local/include ln -s ../opt/openssl/include

Mac OS Sierra virtualenv (python 2.7) pip install mysqlclient error

半腔热情 提交于 2019-12-03 12:46:34
On Mac OS Sierra, created virtualenv using python2.7 and trying to install mysqlclient to use Django w/ MySQL. I installed MySQL 5.6 via homebrew. Running "pip install mysqlclient" gives these errors: Running setup.py bdist_wheel for mysqlclient ... error ... 13 warnings generated. cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.12-intel-2.7/_mysql.o -L/usr/local/Cellar/mysql56/5.6.32/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.12-intel-2.7/_mysql.so ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use

Codesign failed on 10.12 Sierra

本秂侑毒 提交于 2019-12-03 12:31:58
问题 Just installed 10.12 and Xcode 8 codesign command fails even from terminal with A cryptographic verification failure has occurred. and no further details. Any solutions? 回答1: This Chinese website helps me to solve that issue. Launch "Keychain Access", go to "Preferences..." and click "Reset My Default Keychain". After that I was finally able to build my projects. 来源: https://stackoverflow.com/questions/37801465/codesign-failed-on-10-12-sierra

APNs push notification with macOS Sierra

你说的曾经没有我的故事 提交于 2019-12-03 11:02:11
I'm trying to send my phone a push notification using the simple PHP tool which connects to ssl://gateway.push.apple.com:2195 , but the connection fails with the following errors: Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in <Users/.../file.php> on line 30 Warning: stream_socket_client(): Failed to enable crypto in <Users/.../file.php> on line 30 Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in

Interacting with Siri via the command line in macOS

杀马特。学长 韩版系。学妹 提交于 2019-12-03 09:57:39
问题 I use Siri on my phone and watch to create reminders on the go. When I'm in the office I don't want to disturb the quiet by using Siri, so I usually use an Alfred workflow that is integrated with the Reminders app, or use the Reminders app directly. However, both have a rather clunky interface, and it would be much easier if I could just type at the command line: $ siri "remind me to check stack overflow for responses to my question in 15 minutes" macOS Sierra has introduced Siri to the

How to extract xip archive using command line?

筅森魡賤 提交于 2019-12-03 09:26:59
问题 I searched around how to extract XIP archive using command line with no luck so I am leaving my own solution, as a bash function, here. I found my inspiration here. 回答1: function unxip() { [ -z "$1" ] && echo "usage: unxip /path/to/archive.xip" && return # http://newosxbook.com/src.jl?tree=listings&file=pbzx.c PBZX="/usr/local/src/pbzx/pbzx" && [ ! -x "$PBZX" ] && echo "$PBZX not found." && return [ ! -f "$1" ] && echo "$1 not found." && return [ -f "Content" ] || [ -f "Metadata" ] && echo

Cocoa App webview not loading request

情到浓时终转凉″ 提交于 2019-12-03 07:58:50
问题 I have used webview to load url but it is not loaded. i have tried the same with wkwebview but couldn't load url. I have done following import WebKit Info.plist Allow Arbitrary Loads - YES Allow Arbitrary Loads in Web Content - YES LOG: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1 dnssd_clientstub ConnectToServer: connect()-> No of tries: 2 dnssd_clientstub ConnectToServer: connect()-> No of tries: 3 dnssd_clientstub ConnectToServer: connect() failed path:/var/run

Will Xcode 7.3.1 work on macOS 10.12?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 07:42:20
问题 I want to install and try out the new features of macOS 10.12. Also I really want to work on Xcode 8.0. But the same time I have some client projects which should written on Swift 2.2 [ Xcode 7.3.1 ], I don't want use Swift 2.3 or Swift 3.0. So is it possible to install Xcode 7.3.1 in macOS 10.12? Is there any hacky way to do this? Yes I have successfully installed both Xcode 7.3.1 and Xcode 8.0 in my macOS Sierra . Now using both Xcodes. But whenever I run my project using Xcode 7.3.1 I am

install opencv3 on mac for python 3.6

℡╲_俬逩灬. 提交于 2019-12-03 05:56:00
I want to install opencv3 for python 3.6 on macOS Sierra. I have tried to use it through homebrew using this link http://www.pyimagesearch.com/2016/12/19/install-opencv-3-on-macos-with-homebrew-the-easy-way/ but I am getting this error Error: opencv3: Does not support building both Python 2 and 3 wrappers How to resolve this?? bianbian brew install opencv3 --with-contrib --with-python3 --without-python this error is caused by this commit. With brew edit opencv3 you have to comment the four lines: if build.with?("python3") && build.with?("python") # Opencv3 Does not support building both Python