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

Build for IOS #121

Open
gabrielgustavoandrade opened this issue Aug 2, 2024 · 10 comments
Open

Build for IOS #121

gabrielgustavoandrade opened this issue Aug 2, 2024 · 10 comments
Assignees
Labels
Platform: ios Status: help wanted Extra attention is needed Status: work in progress Currently working on this issue

Comments

@gabrielgustavoandrade
Copy link

gabrielgustavoandrade commented Aug 2, 2024

Description

When running the build for iOS I get this error:

Screenshot 2024-08-02 at 12 36 44

Your device where the bug occurs

Not relevant.

Your printer

Not relevant.

Your development environment

npx react-native info:
Binaries:
Node:
version: 22.4.1
path: ~/.nvm/versions/node/v22.4.1/bin/node
Yarn: Not Found
npm:
version: 10.8.1
path: ~/.nvm/versions/node/v22.4.1/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 22.0.2
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: true
newArchEnabled: false

sw_vers:
gabrielandrade@Gabriels-MacBook-Pro pos % sw_vers
ProductName: macOS
ProductVersion: 15.1
BuildVersion: 24B5009l.

Note: the build fails inside Expo also.

To Reproduce

Try to build the IOS application.

Expected behavior

The applications get built.

Screenshots

See screenshot above.

Additional context

I'm using eas from expo. I'm also on a mono-repo and using PNPM.

We came up with this workaround for now: "postinstall": "if [ \"$EXPO_ENV\" = \"true\" ]; then cp -r ../../node_modules/react-native-star-io10 ./node_modules/react-native-star-io10; fi".

I saw this other issue: #7, I followed everything on the thread but had no success.

@atorisemofe
Copy link

@bandit-ibayashi Do you have any more information regarding this error and what could potentially be causing it?

@can-miki can-miki self-assigned this Aug 7, 2024
@can-miki
Copy link
Contributor

can-miki commented Aug 7, 2024

@gabrielgustavoandrade
Could you please update your post to include all the information we require in our bug report template?

@gabrielgustavoandrade
Copy link
Author

@gabrielgustavoandrade Could you please update your post to include all the information we require in our bug report template?

Done.

@can-miki
Copy link
Contributor

can-miki commented Aug 9, 2024

@gabrielgustavoandrade
Thank you for the update. We'll check the actual behavior and let you know if we find anything.

@gabrielgustavoandrade
Copy link
Author

@can-miki one more thing, yesterday it started failing the build for Android also:

   > Could not find :stario10:.
     Required by:
         project :app > project :react-native-star-io10

@can-miki
Copy link
Contributor

@gabrielgustavoandrade
Thank you. For Android, are you experiencing the same symptoms as this issue? #117

Or is this an error that just started that day? (Have you been able to build it up until that day?)

@can-miki can-miki added Status: work in progress Currently working on this issue Platform: ios labels Aug 13, 2024
@gabrielgustavoandrade
Copy link
Author

Hi @can-miki, different symptoms but Android started working again (without us changing anything). We are still experiencing problems on iOS.

@gabrielgustavoandrade
Copy link
Author

Hi @can-miki, I started experiencing problems on Android again. Here's a workaround we did to fix it:
flatDir { dirs "$rootDir/../node_modules/react-native-star-io10/android/src/lib" } in apps/pos/android/build.gradle

@xxkawspuffs
Copy link

@gabrielgustavoandrade Thank you for the update. We'll check the actual behavior and let you know if we find anything.

@can-miki were you able to replicate the behavior or have more information regarding this error and possible fixes?

@can-miki
Copy link
Contributor

Sorry to have kept you waiting.
We are currently investigating, but have not been able to reproduce the problem.

We tried building EAS locally(Not official Cloud), but the build failed.
We tried it a month ago and were able to build it, but were unable to print. The cause is currently being investigated.

Currently, we are targeting the CLI and have not verified its operation on Expo, so it is not easy to investigate.

However, we will let you know if there is an update.
Thank you for your cooperation.

@can-miki can-miki added the Status: help wanted Extra attention is needed label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: ios Status: help wanted Extra attention is needed Status: work in progress Currently working on this issue
Projects
None yet
Development

No branches or pull requests

4 participants