Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ios] React Native 0.64.1 Clean Install Example documentation #37

Open
gabidi opened this issue Jul 17, 2021 · 0 comments
Open

[Ios] React Native 0.64.1 Clean Install Example documentation #37

gabidi opened this issue Jul 17, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@gabidi
Copy link
Contributor

gabidi commented Jul 17, 2021

Test 2 React 0.64.1 and npm:

  1. npx react-native init tortest2 --template react-native-template-typescript
  2. cat package.json | jq -r '.dependencies["react-native"]' shows 0.64.1
  3. npm i https://github.com/Sifir-io/react-native-tor.git#feat/hs
  4. cd ios
  5. make sure platform version matches minimum for rn tor:
--- a/ios/Podfile
+++ b/ios/Podfile

-platform :ios, '11.0'
+platform :ios, '11.1'
  1. Comment out use_flipper!() ~ line 24 of Podfile
  2. Open xcode -> Open project of File -> tortest2/ios
  3. Right click on tortest2 project -> add new file -> swift file and choose to 'create bridging header`
  4. Click on tortest2 project in left navigation pane, go to build settings and
    a. search for 'Bitcode' and set Enable bitcode to false
    b. search for Always embed Swift standard libraries and set to Yes
    c. search for LIBRARY_SEARCH_PATHS and remove the entry $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
  5. Clean build folder and close Xcode.
  6. Go back to terminal and clean everything:
    a. rm -rf node_modules
    b. cd ios && rm -rf Pods Podfile.lock
    c. cd ..
    d. yarn
    e. cd ios && pod install
    f. cd..
  7. npm run ios app builds and compiles :)

System info:
Xcode Version 12.5.1 (12E507)
MacOs BigSur 11.3 (20E232)
react-native ~ 0.64.1
pod --version -> 1.10.1

@gabidi gabidi changed the title [Ios] [Ios] React Native 0.64.1 Clean Install Example documentation Jul 17, 2021
@gabidi gabidi added the documentation Improvements or additions to documentation label Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant