react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
260 stars 2 forks source link

0.73.6 -> 0.75.3 | "ios/PrivacyInfo.xcprivacy' is not a project file." #290

Closed alecdhansen closed 1 month ago

alecdhansen commented 1 month ago

Environment

System: OS: macOS 14.6.1 CPU: (11) arm64 Apple M3 Pro Memory: 82.31 MB / 18.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.19.0 path: ~/.nvm/versions/node/v18.19.0/bin/node Yarn: version: 1.22.21 path: /usr/local/bin/yarn npm: version: 10.4.0 path: ~/.nvm/versions/node/v18.19.0/bin/npm Watchman: version: 2024.09.09.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

Things I’ve done to figure out my issue

Upgrading version

0.75.3

Description

After upgrading, I reset all caches, rebuild node modules/pods etc. I then try to run react-native run-ios to create an iOS build and am continually hit with the following error:

Error: Command failed with exit code 66: xcodebuild -list -json -project /Users/alechansen/coding/my-project/ios/PrivacyInfo.xcprivacy
2024-10-01 12:23:27.645 xcodebuild[53595:439739] Writing error result bundle to /var/folders/nv/bbl7rnq932ng1xf6j290pjgh0000gn/T/ResultBundle_2024-01-10_12-23-0027.xcresult
xcodebuild: error: '/Users/alechansen/coding/my-project/ios/PrivacyInfo.xcprivacy' is not a project file.

I'm able to run builds successfully via Xcode, but would like to figure this out so I can use my CLI (react-native run-ios) as well for generating builds.

Edit: I have no issues with Android.

AmourRamanantsiresy commented 1 month ago

Exactly the same problem,

I followed all the steps of react-native-update-helper, and everything works in android, I can build on ios with xcode, but not with react-native start

abudahsh commented 1 month ago

Remove <FileRef location = "group:PrivacyInfo.xcprivacy"> </FileRef> from ios/contents.xcworkspacedata

alecdhansen commented 1 month ago

This was my issue, builds with no problems now. Thanks! @AmourRamanantsiresy I would suggest trying the above