react-native-quick-crypto icon indicating copy to clipboard operation
react-native-quick-crypto copied to clipboard

Failing to build for iOS with Fastlane error

Open apetta opened this issue 1 year ago • 15 comments

The following build commands failed:
[RUN_FASTLANE]  CompileC /var/folders/88/t01zgnyn4v5frfwvx9zydw_w0000gn/T/eas-build-local-nodejs/604214d7-9e70-45ab-a16a-c350d4b3eaef/build/apps/native/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-quick-crypto.build/Objects-normal/x86_64/MGLVerifyInstaller.o /var/folders/88/t01zgnyn4v5frfwvx9zydw_w0000gn/T/eas-build-local-nodejs/604214d7-9e70-45ab-a16a-c350d4b3eaef/build/node_modules/react-native-quick-crypto/cpp/Sig/MGLVerifyInstaller.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-quick-crypto' from project 'Pods')

Using: Expo 49.0.13 Expo Dev Client 2.4.8 React Native 0.72.5 XCode 15

apetta avatar Oct 04 '23 19:10 apetta

Same issue on XCode 14, so I don't think it's related to the current Xcode 15 bugs...

EAS Build runtime:

Using VM template "macos-ventura-13.4-xcode-14.3.1" running macOS Ventura 13.4


Installed software:

- Xcode 14.3.1 (14E300c)

- Node.js 16.18.1

- Bun 1.0.2

- Yarn 1.22.17

- pnpm 8.6.5

- npm 8.1.2

- fastlane 2.213.0

- CocoaPods 1.12.1

- Ruby 2.7

apetta avatar Oct 04 '23 19:10 apetta

Actually, I think this is likely related to #187

apetta avatar Oct 04 '23 20:10 apetta

@apetta Sure its related ? Im getting this same issue on AppCenter builds

manueldomi avatar Oct 10 '23 21:10 manueldomi

@apetta Sure its related ? Im getting this same issue on AppCenter builds

Not sure about AppCenter, but I was able to resolve my issue with the patch shared on that issue - worth a try!

apetta avatar Oct 10 '23 22:10 apetta

@apetta Sure its related ? Im getting this same issue on AppCenter builds

Not sure about AppCenter, but I was able to resolve my issue with the patch shared on that issue - worth a try!

Actually, I'm getting this again once I set the deploymentTarget to iOS 15/16 instead of omitting the field in expo-build-properties

apetta avatar Oct 11 '23 10:10 apetta

Yeah can confirm it only works with "deploymentTarget": "13.0", anything higher breaks it... strange.

apetta avatar Oct 11 '23 13:10 apetta

Patch didn't work for me. I fixed it specifying OpenSSl Version in Pods file under shared pods, maybe does the trick for you also. pod "OpenSSL-Universal", "1.1.1100"

manueldomi avatar Oct 11 '23 13:10 manueldomi

Patch didn't work for me. I fixed it specifying OpenSSl Version in Pods file under shared pods, maybe does the trick for you also. pod "OpenSSL-Universal", "1.1.1100"

Ha! was literally just doing the same thing! I patched the podspec file to specify the OpenSSL version

For anyone else facing this issue, you can use this patch:

react-native-quick-crypto+0.6.1.patch

apetta avatar Oct 11 '23 14:10 apetta

@apetta i am getting an error on pod install, after use the patch you posted.

[!] CocoaPods could not find compatible versions for pod "OpenSSL-Universal": In Podfile: OpenSSL-Universal (= 1.1.1100)

react-native-quick-crypto (from `../node_modules/react-native-quick-crypto`) was resolved to 0.6.1, which depends on
  OpenSSL-Universal (~> 1.1.2200)

Specs satisfying the OpenSSL-Universal (= 1.1.1100), OpenSSL-Universal (~> 1.1.2200) dependency were found, but they required a higher minimum deployment target.

kassemitani avatar Nov 25 '23 14:11 kassemitani

The package has been updated, can you all give it a try with the latest version please?

ospfranco avatar Dec 02 '23 07:12 ospfranco

The package has been updated, can you all give it a try with the latest version please?

Would love to try it, but the package still seems to be at 0.6.1

apetta avatar Dec 13 '23 18:12 apetta

Yeah, my bad, thought a new version was released. I will ping you once a new version is out, currently fixing some merge issues on my PRs

ospfranco avatar Dec 13 '23 20:12 ospfranco

Is there a timeline more or less? I have another package that depends on deployment target being ios 14, which causes the build failure.

Yeah, my bad, thought a new version was released. I will ping you once a new version is out, currently fixing some merge issues on my PRs

Jzuni97 avatar Jan 02 '24 20:01 Jzuni97

Currently under review https://github.com/margelo/react-native-quick-crypto/pull/200

ospfranco avatar Jan 02 '24 20:01 ospfranco

Build failing:

[RUN_FASTLANE] ⚠️  Script has ambiguous dependencies causing it to run on every build.
   To fix, go to: Xcode » Plenty420Find420Singles/Plenty420Find420Singles » Build Phases » '[CP-User] [RNFB] Crashlytics Configuration'
   Either: Uncheck "Based on dependency analysis", or select output files to trigger the script

[RUN_FASTLANE]     Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the sc
[RUN_FASTLANE] ▸ ** BUILD FAILED **
[RUN_FASTLANE] ▸ The following build commands failed:
[RUN_FASTLANE] ▸        CompileC /var/folders/cr/ny6vby1n7qbdhk5jsyhd0vtr0000gn/T/eas-build-local-nodejs/afe439ec-5b42-489d-8f1f-d15925719e68/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-quick-crypto.build/Objects-normal/x86_64/MGLVerifyInstaller.o /var/folders/cr/ny6vby1n7qbdhk5jsyhd0vtr0000gn/T/eas-build-local-nodejs/afe439ec-5b42-489d-8f1f-d15925719e68/build/node_modules/react-native-quick-crypto/cpp/Sig/MGLVerifyInstaller.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-quick-crypto' from project 'Pods')
[RUN_FASTLANE] ▸ (1 failure)
[RUN_FASTLANE] ** BUILD FAILED **

Using 0.61

react-native-quick-crypto@^0.6.1:
  version "0.6.1"
  resolved "https://registry.yarnpkg.com/react-native-quick-crypto/-/react-native-quick-crypto-0.6.1.tgz#7b89c67c4a5d3669c4491fe7884621c1c74d01bc"
  integrity sha512-s6uFo7tcI3syo8/y5j+t6Rf+KVSuRKDp6tH04A0vjaHptJC6Iu7DVgkNYO7aqtfrYn8ZUgQ/Kqaq+m4i9TxgIQ==
  dependencies:
    "@craftzdog/react-native-buffer" "^6.0.5"
    "@types/node" "^17.0.31"
    crypto-browserify "^3.12.0"
    events "^3.3.0"
    react-native-quick-base64 "^2.0.5"
    stream-browserify "^3.0.0"
    string_decoder "^1.3.0"

andrisole92 avatar Mar 14 '24 21:03 andrisole92

I think this was solved recently, maybe #253, maybe after. Can you try the latest 0.7.0-rc.X and see if this issue persists? If so, please reopen this ticket.

boorad avatar May 12 '24 13:05 boorad