mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Summary: CocoaPods makes it easier to add new iOS dependencies to a project without having to manually edit Xcode projects. Editing Xcode projects is time consuming and merging changes to them difficult. Automating the changes to Xcode project `react-native link` is error prone. CocoaPods is a de-facto standard way to manage iOS dependencies and a central part of unimodules and upcoming improvements to `react-native link`. This PR adds a `Podfile` to the default project template of React Native. To use a project with CocoaPods, after creating it, run `cd ios; pod install` and use the created `<projectname>.xcworkspace` file instead of the `.xcodeproj` file. (We could make this a part of `react-native init` so you only need to run one command when creating a project.) [iOS] [Added] - Add CocoaPods Podfile to the project template Pull Request resolved: https://github.com/facebook/react-native/pull/23563 Differential Revision: D14576505 Pulled By: cpojer fbshipit-source-id: f6c9e93d61a52ad445d2931ccc4933d559a6ec1a
60 lines
817 B
Plaintext
60 lines
817 B
Plaintext
# OSX
|
|
#
|
|
.DS_Store
|
|
|
|
# Xcode
|
|
#
|
|
build/
|
|
*.pbxuser
|
|
!default.pbxuser
|
|
*.mode1v3
|
|
!default.mode1v3
|
|
*.mode2v3
|
|
!default.mode2v3
|
|
*.perspectivev3
|
|
!default.perspectivev3
|
|
xcuserdata
|
|
*.xccheckout
|
|
*.moved-aside
|
|
DerivedData
|
|
*.hmap
|
|
*.ipa
|
|
*.xcuserstate
|
|
project.xcworkspace
|
|
|
|
# Android/IntelliJ
|
|
#
|
|
build/
|
|
.idea
|
|
.gradle
|
|
local.properties
|
|
*.iml
|
|
|
|
# node.js
|
|
#
|
|
node_modules/
|
|
npm-debug.log
|
|
yarn-error.log
|
|
|
|
# BUCK
|
|
buck-out/
|
|
\.buckd/
|
|
*.keystore
|
|
|
|
# fastlane
|
|
#
|
|
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
|
# screenshots whenever they are needed.
|
|
# For more information about the recommended setup visit:
|
|
# https://docs.fastlane.tools/best-practices/source-control/
|
|
|
|
*/fastlane/report.xml
|
|
*/fastlane/Preview.html
|
|
*/fastlane/screenshots
|
|
|
|
# Bundle artifact
|
|
*.jsbundle
|
|
|
|
# CocoaPods
|
|
/ios/Pods/
|