XcodeCloud builds are failing for the specific version v0.71.0 of react-native. When it was on v0.71.4. It was working seamlessly.
I am using Xcode v14.2 on macos Ventura
I am having the following error in the Xcode cloud logs.
No such file or directory @ rb_sysopen - ../node_modules/react-native/package.json
/Volumes/workspace/repository/node_modules/react-native/scripts/react_native_pods.rb:212:in `read'
/Volumes/workspace/repository/node_modules/react-native/scripts/react_native_pods.rb:212:in `react_native_post_install'
Post
Replies
Boosts
Views
Activity
Xcode cloud builds were failing with the following error. It wasn't the problem before yesterday morning 26.Apr.2023 before 1:00 PM.
Please let me know what the issue is or if there is anything I can do to solve this.
Additional information:
The app is a react-native app.
error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502
fatal: expected flush after ref listing
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[in /Volumes/workspace/repository/ios]
[!] Invalid Podfile file: cannot load such file -- /Volumes/workspace/repository/node_modules/react-native/scripts/react_native_pods.
from /Volumes/workspace/repository/ios/Podfile:1
-------------------------------------------
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
-------------------------------------------
Error
Command exited with non-zero exit-code: 1
Hi, I am trying to implement encryption and decryption with EC signing keys. in the process I am getting the following error while creating a SecKey from the private key.
Error in creating a secKey Optional(Swift.Unmanaged<__C.CFErrorRef>(_value: Error Domain=NSOSStatusErrorDomain Code=-50 "EC private key creation from data failed" (paramErr: error in user parameter list) UserInfo={numberOfErrorsDeep=0, NSDescription=EC private key creation from data failed}))
Code snippet for decryption
func decrypt(data: Data, key: SecureEnclave.P256.Signing.PrivateKey) throws -> Data? {
var error: Unmanaged<CFError>?
let privateKeyData: CFData = key.dataRepresentation as CFData
let privateKeyAttributes = [kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,
kSecAttrKeyClass: kSecAttrKeyClassPrivate] as CFDictionary
guard let SecKey = SecKeyCreateWithData(privateKeyData, privateKeyAttributes as CFDictionary, &error)
else {
print("Error in creating a secKey", error)
return nil
}
guard SecKeyIsAlgorithmSupported(SecKey, .decrypt, EncryptAndDecryptAlogrithm)
else {
print("Decryption algorithm is not supported", error)
return nil
}
guard let decryptedData = SecKeyCreateDecryptedData(SecKey, EncryptAndDecryptAlogrithm, data as CFData, &error) else {
print("Error in decryption", error)
return nil
}
return decryptedData as Data
}
let data = Data(base64Encoded: "BNtHrb1cZuflSDZz+E3PnIkLtYUQuBDW+ONlzuAypZcQa+5oKv0L0wSIBMMseMr0roloexPwTaVV26ddewTP0+vRt9v6uLOg366cElMo6P5nh2K7xKi1PMcRyBVel+Kq9WQWT/EkRIuUkHdq2KLXy/Q=")!
let alice = try SecureEnclave.P256.Signing.PrivateKey()
let decryptedData = try decrypt(data: data, key:alice)
Thank you in advance.
Hello,
I am encountering truncatedASN1Field issue while decrypting with SecKeyCreateDecryptedData of encrypted data which is encrypted by SecKeyCreateEncryptedData. It especially happening when I transfer the encrypted data in Base64 format. I am using iPads as clients to generate p256 signing keys and using those public keys to encrypt data (256bit keys).
Please let me know how I can resolve this issue.
Hello,
I am encountering truncatedASN1Field issue while decrypting encrypted data with P256 private key. I am using Base64 format to exchange the encrypted data between the clients. I have no idea what's exactly going on here. Please help me to resolve the issue.
Thanks in Advance.
Hello There,
From some days our Xcode Cloud builds were failing even though I didn't made any changes to the workflow configurations or either in ci_post_clone script. we are using a react-native app for our applications and you can find the post_clone script as follows. Please help me resolve this issue, thanks in advance.
The post_clone script:
# Install CocoaPods and yarn using Homebrew.
brew install cocoapods
brew install node@16
brew link node@16
brew install yarn
# Install dependencies
yarn
pod install
Additional information:
The Xcode and the Mac OS versions are set to latest version.
Hello,
I am trying to verify a EC publicKey(prime256v1) fingerprint generated by Ruby by using Swift's CryptoKit but I did't find any source or an example to verify the publicKey fingerprint. Someone please help me to provide a way to do verify in Swift?
Example code to generate fingerprint in Ruby.
OpenSSL::PKey::EC.new(public_key)
fingerprint = key.fingerprint("sha256")
Example PublicKey and its fingerprint
PublicKey
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEJAZCn9MKy4TRr7GPcEdkgrVK0EAE
fsASHQW4hOOj0UtIWAd7e1xT60zVeFPKKJrB7v5OE9Ha/Xs01IcSsVgE1w==
-----END PUBLIC KEY-----
Fingerprint
SHA256:5r1Tcd4ZGfnY+NQIhXHx6mSGB4rz59JK0lrVUZoXNPI
Hi,
I am creating a workflow in Xcode Cloud for a duplicated react-native application. I have changed the bundle identifier and created a new application in App Center with the same bundle identifier.
in cloud when I am trying to proceed with the step "Archive-IOS" it throws following errors, but those are not thrown in "Build-IOS" step.
Please provide me some suggestions.
Error details:
ITMS-90053: This bundle is invalid - The bundle identifier is already in use by a different software package.
ITMS-90055: This bundle is invalid - The bundle identifier cannot be changed from the current value, '(duplicated.app.build.identifier)'. If you want to change your bundle identifier, you will need to create a new application in App Store Connect.
ITMS-90345: Metadata/Info.plist Mismatch - The value for bundle_identifier in the metadata.xml file does not match the value for CFBundleIdentifier in (Old App Name) [Payload/(oldappName)].