-
Notifications
You must be signed in to change notification settings - Fork 0
Home
numerator edited this page Jul 9, 2020
·
4 revisions
On 7/9/20 MWN sez: In case this turns out to be useful... I couldn't get the build to work on iOS until
- upgraded Ruby using brew (
brew install/upgrade ruby
) - changed my PATH to point to brew's installation of ruby rather than the system default (
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> /Users/mwnewman/.bash_profile; source ~/.bash_profile
) - updated/installed cocoapods (
sudo gem install cocoapods
) - updated the pod repo (
pod repo update
-- not 100% sure this was necessary but can't hurt) - installed the pods (
pod install
), which took a very long time
I also had to fix a lot of ownership and permissions problems along the way, but this is probably because my dev environment is a hot mess.
I was only able to get the app to build and run (in a simulator) by starting the development server using react-native start
instead of expo start
. The latter starts the Metro bundler on port 19001, whereas XCode is looking for the packaging server on port 8081. react-native start
uses the expected port.