Changes to project.pbxproj and xcworkspace after pod install
See original GitHub issueEnvironment
System:
OS: macOS 12.6
CPU: (8) arm64 Apple M1 Pro
Memory: 1.76 GB / 16.00 GB
Shell: 3.5.1 - /opt/homebrew/bin/fish
Binaries:
Node: 16.16.0 - /usr/local/bin/node
Yarn: 1.22.15 - ~/.local/share/nvm/v16.16.0/bin/yarn
npm: 8.13.2 - /opt/homebrew/bin/npm
Watchman: 2022.11.07.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Description
The following diff is created after running pod install
on a fresh project:
You can see the inverse of this diff was made in 0.70.4: https://react-native-community.github.io/upgrade-helper/?from=0.70.3&to=0.70.4
Excluding the podlock which has always been created in fresh apps, are the changes expected? What are we expected to do with these changes? Commit them? In which case, why were they removed from the sample app in the first place?
Reproducible Demo
npx @react-native-community/cli init TestApp
on version 0.70.4 or 0.70.5- Install pods
- See the change applied
Repo: https://github.com/tom-sherman/react-native-sample-app-xcode-workspace-bug-repro
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Change to Pods pbxproj file without 'pod install' or ... - YouTrack
I've attached a project that uses CocoaPods, to reproduce the issue just open the file Project.xcworkspace in AppCode; execute git status ...
Read more >Pods `project.pbxproj` gets modified after opening up Xcode ...
Any time I open the project after a pod install in Xcode 10.2 the same kind of changes in the pbxproj file. This...
Read more >xcproj on CocoaPods.org
Modifications in your projects are usually executed in three steps: Read the project or workspace initializing a XcodeProj or a XCWorkspace object respectively....
Read more >0 - Stack Overflow
After editing .xcodeproj/project.pbxproj, I tried to unpackage contents in .xcworkspace file. At this point, Xcode and my text editor does ...
Read more >[Answer]-Cocoapods missing project.pbxproj after Git clone-swift
If you have the original project you can show the .xcodeproj's packet content and copy the .pbxproj file. Than, paste it inside the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah sorry I missed your first comment which explained this already, thanks for this!
I believe all of these are expected.
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
is, apparently, because your project has hermes enabled and is set by the scripts you import into your Podfile: https://github.com/facebook/react-native/blob/7203187c808531b279ba9a9e2e73748c4254cbb6/scripts/cocoapods/utils.rb#L68REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
is dynamically set because it’s project specific and is set by the RN scripts you import into your Podfile: https://github.com/facebook/react-native/blob/7203187c808531b279ba9a9e2e73748c4254cbb6/scripts/cocoapods/utils.rb#L84 (for example, we use a monorepo setup so the location to thenode_modules
directory is different for us compared to you)ios/TestApp.xcworkspace/contents.xcworkspacedata
- this is the definition of the Xcode workspace that contains your project + the Pods generated project. You want to commit it.