You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when upgrading the react-native-iap library to version ^12.15.0 the build on iOS is failing!
Description
When i run: yarn ios --simulator="iPhone 15 Pro"
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 Compiling\ LatestPromiseKeeper.swift /Users/user/Documents/goldies-app-client/node_modules/react-native-iap/ios/LatestPromiseKeeper.swift (in target 'RNIap' from project 'Pods')
SwiftCompile normal arm64 /Users/user/Documents/goldies-app-client/node_modules/react-native-iap/ios/LatestPromiseKeeper.swift (in target 'RNIap' from project 'Pods')
(2 failures)
Install yarn add react-native-iap last version or ^12.15.0
cd ios and pod install
cd.., yarn ios --simulator="iPhone 15 Pro"
Attention
I found a solution on stack overflow which is to add EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 x86_64;
to the pod that is breaking ios/Pods/Target Support Files/RNIap/RNIap.debug.xcconfig and the build passed, so the CTO asked to request to open this issue to see what is the most efficient solution to this problem so that we don't have to create a fork of the library and fix the problem or create a patch of the pod.
Thanks!!
The text was updated successfully, but these errors were encountered:
Could you please test the example project in the repo and compare it with your setup? I suspect the issue is not related to our library, but more likely due to react-native dependencies. 🤔
cc @arthurgeron, the contributor for LatestPromiseKeeper, just in case.
When I run npx -y eas-cli build --platform ios --local --profile development on my local machine (Apple M1), I get the following error:
[RUN_FASTLANE] The following build commands failed:
[RUN_FASTLANE] SwiftCompile normal arm64 Compiling\ LatestPromiseKeeper.swift /var/folders/2q/rxlt_3q965s8jrck6jhr3fbh0000gn/T/eas-build-local-nodejs/0c1b1855-768b-4e8a-8d0b-c246c27612a5/build/node_modules/react-native-iap/ios/LatestPromiseKeeper.swift (in target 'RNIap' from project 'Pods')
This command was working before upgrading react-native-iap from 12.13.2 to 12.15.1. It also still seems to work on non-M1 machines.
Hello, when upgrading the react-native-iap library to version ^12.15.0 the build on iOS is failing!
Description
When i run:
yarn ios --simulator="iPhone 15 Pro"
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 Compiling\ LatestPromiseKeeper.swift /Users/user/Documents/goldies-app-client/node_modules/react-native-iap/ios/LatestPromiseKeeper.swift (in target 'RNIap' from project 'Pods')
SwiftCompile normal arm64 /Users/user/Documents/goldies-app-client/node_modules/react-native-iap/ios/LatestPromiseKeeper.swift (in target 'RNIap' from project 'Pods')
(2 failures)
Screenshots
Environment:
To Reproduce
Steps to reproduce the behavior:
yarn ios --simulator="iPhone 15 Pro"
Attention
I found a solution on stack overflow which is to add
EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 x86_64;
to the pod that is breaking
ios/Pods/Target Support Files/RNIap/RNIap.debug.xcconfig
and the build passed, so the CTO asked to request to open this issue to see what is the most efficient solution to this problem so that we don't have to create a fork of the library and fix the problem or create a patch of the pod.Thanks!!
The text was updated successfully, but these errors were encountered: