macos-sierra

EVP_get_cipherbyname always returns null

拟墨画扇 提交于 2019-12-12 05:29:14
问题 I have a problem when calling EVP_get_cipherbyname on macOS: const char *cipher_str = "aes-256-cbc"; const evp_cipher_st *cipher1 = EVP_aes_256_cbc(); const evp_cipher_st *cipher2 = EVP_get_cipherbyname(cipher_str); In the code above, cipher1 will always be set to a valid evp_cipher_st * object, and cipher2 will always be null. I haven't found a single instance of cipher_str that produces a non-null cipher2 . Am I doing something wrong? Are there some other calls I should be making to get

Share data between main app and today widget macOS

醉酒当歌 提交于 2019-12-12 05:26:17
问题 I'm trying to share data between my main macOS app and the extension I created. I saw I have to use the "App Groups" and share the data with "UserDefault(suiteName: "name")" The problem : After turned on App Groups on the main app and added a name, I then turn on App Groups on extension and the list is empty, I don't see the group I'v just created ? Any idea ? btw: the team profil is the same on both app and extension. I'v tried to delete temporary file, clean project, restored Xcode and

socket.gethostbyname unable to find local hostname after updating to mac osx sierra

馋奶兔 提交于 2019-12-12 05:09:02
问题 After updating to OS Sierra, I tried running my local test suite with rspec spec , this immediately broke giving this stack trace: Coverage report generated for RSpec to /Users/October/Documents/code/clients-api/coverage. 38 / 101 LOC (37.62%) covered. /Users/October/.rvm/gems/ruby-2.3.1@clients-api/gems/bundler-1.13.2/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'torid'. (Bundler::GemRequireError) Gem Load Error is:

Catch and change keyboard on mac sierra to emulate neo2 keyboard layout

北慕城南 提交于 2019-12-12 04:31:04
问题 I am using the optimised layout neo2: https://www.neo-layout.org/ Unfortunately the mac version was based on karabiner (https://pqrs.org/osx/karabiner/) which has stopped working since the Sierra update. There is a promising new Version called karabiner elements (https://github.com/tekezo/Karabiner-Elements) which will hopefully solve this problem. Since i do not now when the fix will work on mac sierra, I am looking for a non generic "quick and dirty" solution, which just maps the standard

Unable to install Elasticsearch on Mac Sierra (10.12.2)

馋奶兔 提交于 2019-12-12 04:16:52
问题 When attempting to start Elasticsearch 5.1.1 via $ elasticsearch I get the output: Error: Could not find or load main class -Xms2g I've looked into: I read it may be an error in how a class is called? But I'm not exposed to doing that. This thread doesn't help and isn't really my problem as I'm not installing a plugin. I installed via Homebrew. Here is some output from that: $ brew info elasticsearch elasticsearch: stable 5.1.1, HEAD Distributed search & analytics engine https://www.elastic

Problems with Spyder 3 in macOS Sierra

限于喜欢 提交于 2019-12-12 03:42:37
问题 I have recently installed the latest conda distribution on macSierra. I have encountered many problems: 1) My main concern is that Spyder crashes eventually, especially when switching between applications and coming back to Spyder the rotating wheels keeps eternally spinning and unresponsive. This happens after ~10 minutes of use. I have tried spyder with different graphic backend for ipython and the problem still happens. When launching spyder the following message appears: [warn] kq_init:

Installing Xcode 8 on pre-installed Xcode 7.3.1 [Using multiple version]

▼魔方 西西 提交于 2019-12-12 03:06:55
问题 Hi I am currently using Xcode 7.3.1 on macOS Sierra . Due to the issue ERROR ITMS 90167 . I can't upload my archive using Xcode 7.3.1 . So, It's time to upgrade Xcode 8 . But, unfortunately, I can't use Xcode 8 to Develop application due to migration problem on my previous project which was big. All I want is built in Application Loader from Xcode 8 . And I need to do some migration on Xcode 8 while I am developing my current app from 7.3.1 And I did download Xcode 8 from Developer Program =>

Issues while installing tensorflow for Python 3.7 in Mac

独自空忆成欢 提交于 2019-12-11 18:53:23
问题 I am using macOS Sierra(on GPU support) with python3.7.0 installed. Whenever I am trying to install tensorflow with the following command, pip3 install tensorflow I am getting the following issues: Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow. Any help or suggestions are welcome. 回答1: Tensorflow does not support Python 3.7 yet. Use Python 3.6. See https://github.com/tensorflow/tensorflow/issues/17022. 来源:

Kill process in swift

可紊 提交于 2019-12-11 17:42:45
问题 I am trying to make a Mac application that will automatically close a code designated application running on the OS. I am trying to use killall (like in Terminal). Whenever I try to run the program, I get, "sysctl: unknown oid 'killall'". Here's my code: let task = Process() task.launchPath = "/usr/sbin/sysctl" ///usr/sbin/sysctl task.arguments = ["killall","iTunes"] let pipe = Pipe() task.standardOutput = pipe task.standardError = pipe task.launch() task.waitUntilExit() let data = pipe

Why does rl_bind_key with custom function fail in readline on OSX/macOS

空扰寡人 提交于 2019-12-11 14:57:37
问题 I built a shell that tries to make the tab ( \t ) key do something custom using rl_bind_key() , but it didn't work in macOS Sierra, but it works on Ubuntu, Fedora, and CentOS. Here's the mcve: #include <stdlib.h> #include <stdio.h> #include <readline/readline.h> static int cmd_complete(int count, int key) { printf("\nCustom tab action goes here...\n"); rl_forced_update_display(); return 0; } char *interactive_input() { char *buffer = readline(" > "); return buffer; } int main(int argc, char *