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

[Bug]: @react-native-vector-icons/* v11 - Copy Fonts script fails during iOS archive/release build #1715

Open
marcshilling opened this issue Feb 20, 2025 · 5 comments
Labels
bug next release Will be fixed in next release

Comments

@marcshilling
Copy link

marcshilling commented Feb 20, 2025

Which package are you using?

@react-native-vector-icons/* v11

What platform(s) does this occur on?

iOS

What happened?

Debug builds work fine, but when I try to do Product > Archive (release build), the copy-fonts.sh script fails because the .app file doesn't exist. Full output below:

Relevant log output

(RNVI) START_COPY_FONTS
(RNVI) PWD: /Users/marcshilling/Development/my-app-v4/ios/Pods
(RNVI) PODS_ROOT: /Users/marcshilling/Development/my-app-v4/ios/Pods
(RNVI) PROJECT_ROOT: /Users/marcshilling/Development/my-app-v4/ios/Pods/../..
(RNVI) PODS_CONFIGURATION_BUILD_DIR: /Users/marcshilling/Library/Developer/Xcode/DerivedData/MyApp-cyejqchnhyautoeqhshtkyccxehn/Build/Intermediates.noindex/ArchiveIntermediates/Beta/BuildProductsPath/BetaRelease-iphoneos
ls: /Users/marcshilling/Library/Developer/Xcode/DerivedData/MyApp-cyejqchnhyautoeqhshtkyccxehn/Build/Intermediates.noindex/ArchiveIntermediates/Beta/BuildProductsPath/BetaRelease-iphoneos/*.app: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

Minimal reproducible example

No response

Your computer environment

System:
  OS: macOS 15.3
  CPU: (12) arm64 Apple M3 Pro
  Memory: 928.92 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.18.3
    path: ~/.asdf/installs/nodejs/20.18.3/bin/node
  Yarn:
    version: 4.6.0
    path: ~/.asdf/installs/nodejs/20.18.3/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.asdf/plugins/nodejs/shims/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/marcshilling/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2411.12169540
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/marcshilling/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 14.1.2
    wanted: ^14.0.0
  react:
    installed: 18.3.1
    wanted: ^18.2.0
  react-native:
    installed: 0.75.5
    wanted: ^0.75.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
@robin-ostertag
Copy link

I'm facing the same problem right now.
Did you find a solution for it?

@marcshilling
Copy link
Author

I'm facing the same problem right now. Did you find a solution for it?

@robin-ostertag Nope...I went back to v10 for now. Doesn't seem like v11 is quite ready for primetime.

@johnf
Copy link
Collaborator

johnf commented Feb 26, 2025

@marcshilling @robin-ostertag Looks like we need a better heuristic for finding the place to copy the fonts to

I'll experiment with building manually from xcode. I've been testing via an xcodebuild command I've developed over the years

@johnf
Copy link
Collaborator

johnf commented Feb 27, 2025

In the next few weeks, we will have a major release that moves the responsibility of font copying down to the font package, which means we can use s.resources in the podspec, and the need for this script goes away, which solves this issue.

@johnf johnf added the next release Will be fixed in next release label Feb 27, 2025
@robin-ostertag
Copy link

Sounds good, thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug next release Will be fixed in next release
Projects
None yet
Development

No branches or pull requests

3 participants