I use bare workflow with eas-cli
version 0.43.0.
expo run:ios
works fine locally.
When running eas build --platform ios
it fails on the step Run fastlane with the following logs:
Resolving Swift Package Manager dependencies...
$ xcodebuild -resolvePackageDependencies -workspace ./Smarto.xcworkspace -scheme Smarto -configuration Release
▸ Command line invocation:
▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./Smarto.xcworkspace -scheme Smarto -configuration Release
▸ User defaults from command line:
▸ IDEPackageSupportUseBuiltinSCM = YES
▸ Resolve Package Graph
▸ Fetching from https://github.com/tink-ab/tink-link-ios
▸ Fetching from https://github.com/johnxnguyen/Down
▸ Fetching from https://github.com/tink-ab/tink-core-ios
▸ Cloning local copy of package ‘tink-link-ios’
▸ Checking out 1.4.1 of package ‘tink-link-ios’
▸ Cloning local copy of package ‘tink-core-ios’
▸ Checking out 1.5.4 of package ‘tink-core-ios’
▸ Cloning local copy of package ‘Down’
▸ Checking out 0.11.0 of package ‘Down’
▸ Resolved source packages:
▸ TinkLink: https://github.com/tink-ab/tink-link-ios @ 1.4.1
▸ TinkCore: https://github.com/tink-ab/tink-core-ios @ 1.5.4
▸ Down: https://github.com/johnxnguyen/Down @ 0.11.0
....
...
Compiling @sentry/react-native Pods/Sentry » NSData+SentryCompression.m
› Compiling @sentry/react-native Pods/Sentry » NSData+Sentry.m
› Compiling @sentry/react-native Pods/Sentry » NSArray+SentrySanitize.m
› Compiling @sentry/react-native Pods/Sentry » Container+SentryDeepSearch.m
❌ (../../Library/Developer/Xcode/DerivedData/Smarto-agolblfzguleygatquekdjgvrydq/SourcePackages/checkouts/tink-link-ios/Sources/TinkLink/Extensions/Error+TinkLinkError.swift:2:8)
1 | import Foundation
> 2 | import TinkCore
| ^ no such module 'TinkCore'
3 |
4 | extension Swift.Error {
5 | var tinkLinkError: Swift.Error {
› Creating TinkLink/TinkLink_TinkLinkUI » TinkLink_TinkLinkUI.bundle
› Compiling react-native Pods/React-perflogger » React-perflogger-dummy.m
› Compiling react-native Pods/React-perflogger » BridgeNativeModulePerfLogger.cpp
› Compiling react-native Pods/React-perflogger » React-perflogger-dummy.m
....
› Packaging react-native Pods/React-jsinspector » libReact-jsinspector.a
› Compiling expo-updates-interface Pods/EXUpdatesInterface » EXUpdatesInterface-dummy.m
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ CompileSwift normal arm64 (in target 'TinkLink' from project 'TinkLink')
▸ CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'TinkLink' from project 'TinkLink')
▸ (2 failures)
** ARCHIVE FAILED **
...
I use bare workflow because I need to use these iOS packages TinkLink and TinkCore. I don’t understand the error no such module 'TinkCore'
while the package was installed (logs above) and the app works fine on locally.
I tried upgrading eas-cli
from 0.41 to 0.43 but it didn’t help. I also tried to put “image”: “latest” in eas.json
but it didn’t work: Error: eas.json is not valid [ValidationError: "build.production.image" is not allowed]