Skip to content

Instantly share code, notes, and snippets.

The issue is closed but in case if above answers don't work.
put this in console -> xcrun -k --sdk iphoneos --show-sdk-path
if the answer is
xcrun:_ error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
then put this sudo xcode-select --switch /Applications/Xcode.app
Then pod install again
@muhozi
muhozi / MySQL_macOS_Sierra.md
Created October 20, 2018 19:20 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@muhozi
muhozi / Podfile
Created September 16, 2018 11:57
React native pod file example with other packages: react-native-maps
# The target name is most likely the name of your project.
platform :ios, '9.0'
target 'EventLocator' do
rn_path = '../node_modules/react-native'
rn_maps_path = '../node_modules/react-native-maps'
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
@muhozi
muhozi / react-native-socket-io.js
Last active August 15, 2018 19:51
Use socket.io in react native
import io from 'socket.io-client/dist/socket.io';
const connectionConfig = {
jsonp: false,
reconnection: true,
reconnectionDelay: 100,
reconnectionAttempts: 100000,
transports: ['websocket']
};
const socket_url = 'http://192.168.56.1:3000';
socket = io(socket_url, connectionConfig);
@muhozi
muhozi / introrx.md
Created May 14, 2018 17:34 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@muhozi
muhozi / Laravel-permission.md
Last active October 21, 2024 23:54
Setting proper permissions to laravel directory

Setting up proper permissions to a laravel directory

There are basically two ways to setup your ownership and permissions. Either you give yourself ownership or you make the webserver the owner of all files.

Webserver as owner (the way most people do it):

Assuming www-data is your webserver user.

@muhozi
muhozi / install.sh
Last active April 26, 2018 05:09
Install required php extensions to run laravel
apt-get install php-common php-fpm php-mysql php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-mysql php7.0-opcache php7.0-readline php-bcmath php-bz2 php-calendar php-ctype php-curl php-date php-enchant php-gd php-intl php-mbstring php-mcrypt php-mongodb php-soap php-sqlite3 php-tidy php-xdebug php-xml php-xml-parser php-xml-rpc2 php-xml-serializer php-xml-svg php-xmlrpc php-zip