@expo/eas-build-job 0.2.73 → 0.2.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/errors.d.ts CHANGED
@@ -12,6 +12,7 @@ export declare enum ErrorCode {
12
12
  INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR = "EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR",
13
13
  INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR = "EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR",
14
14
  YARN_LOCK_CHECKSUM_ERROR = "EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR",
15
+ NPM_PACKAGE_CORRUPTED_ERROR = "NPM_PACKAGE_CORRUPTED_ERROR",
15
16
  UNKNOWN_FASTLANE_ERROR = "EAS_BUILD_UNKNOWN_FASTLANE_ERROR",
16
17
  UNKNOWN_GRADLE_ERROR = "EAS_BUILD_UNKNOWN_GRADLE_ERROR",
17
18
  BUILD_TIMEOUT_ERROR = "EAS_BUILD_TIMEOUT_ERROR"
@@ -88,6 +89,10 @@ export declare class YarnLockChecksumError extends UserError {
88
89
  errorCode: ErrorCode;
89
90
  constructor(packageName: string);
90
91
  }
92
+ export declare class NpmCorruptedPackageError extends UserError {
93
+ errorCode: ErrorCode;
94
+ constructor(packageName: string);
95
+ }
91
96
  export declare class UnknownGradleError extends UserError {
92
97
  errorCode: ErrorCode;
93
98
  message: string;
package/dist/errors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnknownGradleError = exports.YarnLockChecksumError = exports.IncompatiblePodsGenericWorkflowError = exports.IncompatiblePodsManagedWorkflowError = exports.UnknownFastlaneError = exports.MissingGoogleServicesPlist = exports.MissingGoogleServicesJson = exports.UnsupportedBundlerVersion = exports.UnsupportedCocoaPodsVersion = exports.InvalidKeystoreAliasError = exports.InvalidKeystoreFormatError = exports.SystemDepsInstallError = exports.CredentialsDistCertMismatchError = exports.BuildTimeout = exports.ServerError = exports.UnknownError = exports.UserError = exports.ErrorCode = void 0;
3
+ exports.UnknownGradleError = exports.NpmCorruptedPackageError = exports.YarnLockChecksumError = exports.IncompatiblePodsGenericWorkflowError = exports.IncompatiblePodsManagedWorkflowError = exports.UnknownFastlaneError = exports.MissingGoogleServicesPlist = exports.MissingGoogleServicesJson = exports.UnsupportedBundlerVersion = exports.UnsupportedCocoaPodsVersion = exports.InvalidKeystoreAliasError = exports.InvalidKeystoreFormatError = exports.SystemDepsInstallError = exports.CredentialsDistCertMismatchError = exports.BuildTimeout = exports.ServerError = exports.UnknownError = exports.UserError = exports.ErrorCode = void 0;
4
4
  var ErrorCode;
5
5
  (function (ErrorCode) {
6
6
  ErrorCode["UKNOWN_ERROR"] = "UNKNOWN_ERROR";
@@ -16,6 +16,7 @@ var ErrorCode;
16
16
  ErrorCode["INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR"] = "EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR";
17
17
  ErrorCode["INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR"] = "EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR";
18
18
  ErrorCode["YARN_LOCK_CHECKSUM_ERROR"] = "EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR";
19
+ ErrorCode["NPM_PACKAGE_CORRUPTED_ERROR"] = "NPM_PACKAGE_CORRUPTED_ERROR";
19
20
  ErrorCode["UNKNOWN_FASTLANE_ERROR"] = "EAS_BUILD_UNKNOWN_FASTLANE_ERROR";
20
21
  ErrorCode["UNKNOWN_GRADLE_ERROR"] = "EAS_BUILD_UNKNOWN_GRADLE_ERROR";
21
22
  ErrorCode["BUILD_TIMEOUT_ERROR"] = "EAS_BUILD_TIMEOUT_ERROR";
@@ -92,7 +93,7 @@ class UnsupportedCocoaPodsVersion extends UserError {
92
93
  this.message = `Your project requires a newer version of CocoaPods, you can update it in the build profile in eas.json by either:
93
94
  - changing the current version under key "cocoapods"
94
95
  - switching to an image that supports that version under key "image"`;
95
- this.docsUrl = 'https://docs.expo.io/build/eas-json';
96
+ this.docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';
96
97
  }
97
98
  }
98
99
  exports.UnsupportedCocoaPodsVersion = UnsupportedCocoaPodsVersion;
@@ -100,8 +101,8 @@ class UnsupportedBundlerVersion extends UserError {
100
101
  constructor() {
101
102
  super(...arguments);
102
103
  this.errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;
103
- this.message = `Your project requires another version of bundler, you can change it in the build profile in eas.json by specifying the version under key "bundler"`;
104
- this.docsUrl = 'https://docs.expo.io/build/eas-json';
104
+ this.message = `Your project requires a different version of the Ruby "bundler" program than the version installed in this EAS Build environment. You can specify which version of "bundler" to install by specifying the version under "build"→[buildProfileName]→"ios"→"bundler" in eas.json.`;
105
+ this.docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';
105
106
  }
106
107
  }
107
108
  exports.UnsupportedBundlerVersion = UnsupportedBundlerVersion;
@@ -137,8 +138,8 @@ class IncompatiblePodsManagedWorkflowError extends UserError {
137
138
  this.message = `Compatible versions of some pods could not be resolved.
138
139
  You are seeing this error because either:
139
140
  - Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${usingDefaultCacheConfig
140
- ? 'add the "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
141
- : 'update value of the "cache.key" field in eas.json to invalidate the cache.'}
141
+ ? 'add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'
142
+ : 'update value of the "cache.key" field in the build profile in eas.json to invalidate the cache.'}
142
143
  - Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.
143
144
  `;
144
145
  }
@@ -151,8 +152,8 @@ class IncompatiblePodsGenericWorkflowError extends UserError {
151
152
  this.message = `Compatible versions of some pods could not be resolved.
152
153
  You are seeing this error because either:
153
154
  - Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${usingDefaultCacheConfig
154
- ? 'add the "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
155
- : 'update value of the "cache.key" field in eas.json to invalidate the cache.'}
155
+ ? 'add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'
156
+ : 'update value of the "cache.key" field in the build profile in eas.json to invalidate the cache.'}
156
157
  - Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.
157
158
  `;
158
159
  }
@@ -169,6 +170,14 @@ class YarnLockChecksumError extends UserError {
169
170
  }
170
171
  }
171
172
  exports.YarnLockChecksumError = YarnLockChecksumError;
173
+ class NpmCorruptedPackageError extends UserError {
174
+ constructor(packageName) {
175
+ super();
176
+ this.errorCode = ErrorCode.NPM_PACKAGE_CORRUPTED_ERROR;
177
+ this.message = `Package ${packageName} is corrupted, try switching to public npm registry by adding ("eas-build-pre-install": "npm config set registry https://registry.npmjs.org/") in the "scripts" section in package.json. If this resolves the issue please report it as a bug.`;
178
+ }
179
+ }
180
+ exports.NpmCorruptedPackageError = NpmCorruptedPackageError;
172
181
  class UnknownGradleError extends UserError {
173
182
  constructor() {
174
183
  super(...arguments);
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAiBX;AAjBD,WAAY,SAAS;IACnB,2CAA8B,CAAA;IAC9B,0CAA6B,CAAA;IAC7B,wFAA2E,CAAA;IAC3E,8EAAiE,CAAA;IACjE,kGAAqF,CAAA;IACrF,8FAAiF,CAAA;IACjF,sFAAyE,CAAA;IACzE,oFAAuE,CAAA;IACvE,gGAAmF,CAAA;IACnF,kGAAqF,CAAA;IACrF,4GAA+F,CAAA;IAC/F,4GAA+F,CAAA;IAC/F,4EAA+D,CAAA;IAC/D,wEAA2D,CAAA;IAC3D,oEAAuD,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AED,CAAC;IACA,CAAC;CACF;AAfD,oFAeC;AAED,MAAa,oCAAqC,SAAQ,SAAS;IAGjE,YAAY,uBAAgC;QAC1C,KAAK,EAAE,CAAC;QAHV,cAAS,GAAG,SAAS,CAAC,wCAAwC,CAAC;QAI7D,IAAI,CAAC,OAAO,GAAG;;gIAGf,uBAAuB;YACrB,CAAC,CAAC,6FAA6F;YAC/F,CAAC,CAAC,4EACN;;CAED,CAAC;IACA,CAAC;CACF;AAfD,oFAeC;AAED,MAAa,qBAAsB,SAAQ,SAAS;IAGlD,YAAY,WAAmB;QAC7B,KAAK,EAAE,CAAC;QAHV,cAAS,GAAG,SAAS,CAAC,wBAAwB,CAAC;QAI7C,IAAI,CAAC,OAAO,GAAG,yBAAyB,WAAW;;;6BAG1B,CAAC;IAC5B,CAAC;CACF;AAVD,sDAUC;AAED,MAAa,kBAAmB,SAAQ,SAAS;IAAjD;;QACE,cAAS,GAAG,SAAS,CAAC,oBAAoB,CAAC;QAC3C,YAAO,GAAG,sFAAsF,CAAC;IACnG,CAAC;CAAA;AAHD,gDAGC","sourcesContent":["export enum ErrorCode {\n UKNOWN_ERROR = 'UNKNOWN_ERROR',\n SERVER_ERROR = 'SERVER_ERROR',\n CREDENTIALS_DIST_CERT_MISMATCH = 'EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH',\n SYSTEM_DEPS_INSTALL_ERROR = 'EAS_BUILD_SYSTEM_DEPS_INSTALL_ERROR',\n UNSUPPORTED_COCOAPODS_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_COCOAPODS_VERSION_ERROR',\n UNSUPPORTED_BUNDLER_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_BUNDLER_VERSION_ERROR',\n INVALID_KEYSTORE_FORMAT_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_FORMAT_ERROR',\n INVALID_KEYSTORE_ALIAS_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_ALIAS_ERROR',\n MISSING_GOOGLE_SERVICES_JSON_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_JSON_ERROR',\n MISSING_GOOGLE_SERVICES_PLIST_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_PLIST_ERROR',\n INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR',\n INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR',\n YARN_LOCK_CHECKSUM_ERROR = 'EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR',\n UNKNOWN_FASTLANE_ERROR = 'EAS_BUILD_UNKNOWN_FASTLANE_ERROR',\n UNKNOWN_GRADLE_ERROR = 'EAS_BUILD_UNKNOWN_GRADLE_ERROR',\n BUILD_TIMEOUT_ERROR = 'EAS_BUILD_TIMEOUT_ERROR',\n}\n\nexport interface ExternalUserError {\n errorCode: string;\n message: string;\n docsUrl?: string;\n}\n\nexport abstract class UserError extends Error {\n public abstract errorCode: ErrorCode;\n public docsUrl?: string;\n public innerError?: Error;\n\n public format(): ExternalUserError {\n return {\n errorCode: this.errorCode,\n message: this.message,\n docsUrl: this.docsUrl,\n };\n }\n}\n\nexport class UnknownError extends UserError {\n errorCode = ErrorCode.UKNOWN_ERROR;\n message = 'Unknown error. Please see logs.';\n}\n\nexport class ServerError extends UserError {\n errorCode = ErrorCode.SERVER_ERROR;\n message =\n 'Internal Server Error.\\nPlease try again later. If the problem persists, please report the issue.';\n}\n\nexport class BuildTimeout extends ServerError {\n constructor(maxBuildTimeMs: number) {\n super();\n this.message = `Your build has exceeded the maximum build time of ${\n maxBuildTimeMs / (60 * 1000)\n } minutes.`;\n }\n}\n\nexport class CredentialsDistCertMismatchError extends UserError {\n errorCode = ErrorCode.CREDENTIALS_DIST_CERT_MISMATCH;\n message = \"Provisioning profile and distribution certificate don't match.\";\n}\n\nexport class SystemDepsInstallError extends UserError {\n errorCode = ErrorCode.SYSTEM_DEPS_INSTALL_ERROR;\n\n constructor(dependency: string) {\n super();\n this.message = `Failed to install ${dependency}. Make sure you specified the correct version in eas.json.`;\n }\n}\n\nexport class InvalidKeystoreFormatError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The keystore used in this build is malformed or it has an unsupported type. Make sure you provided the correct file.';\n}\n\nexport class InvalidKeystoreAliasError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The alias specified for this keystore does not exist. Make sure you specified the correct value.';\n}\n\nexport class UnsupportedCocoaPodsVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_COCOAPODS_VERSION_ERROR;\n message = `Your project requires a newer version of CocoaPods, you can update it in the build profile in eas.json by either:\n- changing the current version under key \"cocoapods\"\n- switching to an image that supports that version under key \"image\"`;\n docsUrl = 'https://docs.expo.io/build/eas-json';\n}\n\nexport class UnsupportedBundlerVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;\n message = `Your project requires another version of bundler, you can change it in the build profile in eas.json by specifying the version under key \"bundler\"`;\n docsUrl = 'https://docs.expo.io/build/eas-json';\n}\n\nexport class MissingGoogleServicesJson extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_JSON_ERROR;\n message =\n '\"google-services.json\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class MissingGoogleServicesPlist extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_PLIST_ERROR;\n message =\n '\"GoogleService-Info.plist\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class UnknownFastlaneError extends UserError {\n errorCode = ErrorCode.UNKNOWN_FASTLANE_ERROR;\n message = `Fastlane build failed with unknown error. Please refer to the \"Run fastlane\" and \"Xcode Logs\" phases.\nFastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.`;\n}\n\nexport class IncompatiblePodsManagedWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in eas.json to invalidate the cache.'\n }\n - Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class IncompatiblePodsGenericWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in eas.json to invalidate the cache.'\n }\n - Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class YarnLockChecksumError extends UserError {\n errorCode = ErrorCode.YARN_LOCK_CHECKSUM_ERROR;\n\n constructor(packageName: string) {\n super();\n this.message = `Checksum for package \"${packageName}\" does not match value in registry. To fix that:\n- run \"yarn cache clean\"\n- remove yarn.lock (or only the section for that package)\n- run \"yarn install --force\"`;\n }\n}\n\nexport class UnknownGradleError extends UserError {\n errorCode = ErrorCode.UNKNOWN_GRADLE_ERROR;\n message = 'Gradle build failed with unknown error. Please see logs for the \"Run gradlew\" phase.';\n}\n"]}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mapp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C;CAAA;AAHD,gDAGC","sourcesContent":["export enum ErrorCode {\n UKNOWN_ERROR = 'UNKNOWN_ERROR',\n SERVER_ERROR = 'SERVER_ERROR',\n CREDENTIALS_DIST_CERT_MISMATCH = 'EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH',\n SYSTEM_DEPS_INSTALL_ERROR = 'EAS_BUILD_SYSTEM_DEPS_INSTALL_ERROR',\n UNSUPPORTED_COCOAPODS_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_COCOAPODS_VERSION_ERROR',\n UNSUPPORTED_BUNDLER_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_BUNDLER_VERSION_ERROR',\n INVALID_KEYSTORE_FORMAT_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_FORMAT_ERROR',\n INVALID_KEYSTORE_ALIAS_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_ALIAS_ERROR',\n MISSING_GOOGLE_SERVICES_JSON_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_JSON_ERROR',\n MISSING_GOOGLE_SERVICES_PLIST_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_PLIST_ERROR',\n INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR',\n INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR',\n YARN_LOCK_CHECKSUM_ERROR = 'EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR',\n NPM_PACKAGE_CORRUPTED_ERROR = 'NPM_PACKAGE_CORRUPTED_ERROR',\n UNKNOWN_FASTLANE_ERROR = 'EAS_BUILD_UNKNOWN_FASTLANE_ERROR',\n UNKNOWN_GRADLE_ERROR = 'EAS_BUILD_UNKNOWN_GRADLE_ERROR',\n BUILD_TIMEOUT_ERROR = 'EAS_BUILD_TIMEOUT_ERROR',\n}\n\nexport interface ExternalUserError {\n errorCode: string;\n message: string;\n docsUrl?: string;\n}\n\nexport abstract class UserError extends Error {\n public abstract errorCode: ErrorCode;\n public docsUrl?: string;\n public innerError?: Error;\n\n public format(): ExternalUserError {\n return {\n errorCode: this.errorCode,\n message: this.message,\n docsUrl: this.docsUrl,\n };\n }\n}\n\nexport class UnknownError extends UserError {\n errorCode = ErrorCode.UKNOWN_ERROR;\n message = 'Unknown error. Please see logs.';\n}\n\nexport class ServerError extends UserError {\n errorCode = ErrorCode.SERVER_ERROR;\n message =\n 'Internal Server Error.\\nPlease try again later. If the problem persists, please report the issue.';\n}\n\nexport class BuildTimeout extends ServerError {\n constructor(maxBuildTimeMs: number) {\n super();\n this.message = `Your build has exceeded the maximum build time of ${\n maxBuildTimeMs / (60 * 1000)\n } minutes.`;\n }\n}\n\nexport class CredentialsDistCertMismatchError extends UserError {\n errorCode = ErrorCode.CREDENTIALS_DIST_CERT_MISMATCH;\n message = \"Provisioning profile and distribution certificate don't match.\";\n}\n\nexport class SystemDepsInstallError extends UserError {\n errorCode = ErrorCode.SYSTEM_DEPS_INSTALL_ERROR;\n\n constructor(dependency: string) {\n super();\n this.message = `Failed to install ${dependency}. Make sure you specified the correct version in eas.json.`;\n }\n}\n\nexport class InvalidKeystoreFormatError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The keystore used in this build is malformed or it has an unsupported type. Make sure you provided the correct file.';\n}\n\nexport class InvalidKeystoreAliasError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The alias specified for this keystore does not exist. Make sure you specified the correct value.';\n}\n\nexport class UnsupportedCocoaPodsVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_COCOAPODS_VERSION_ERROR;\n message = `Your project requires a newer version of CocoaPods, you can update it in the build profile in eas.json by either:\n- changing the current version under key \"cocoapods\"\n- switching to an image that supports that version under key \"image\"`;\n docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';\n}\n\nexport class UnsupportedBundlerVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;\n message = `Your project requires a different version of the Ruby \"bundler\" program than the version installed in this EAS Build environment. You can specify which version of \"bundler\" to install by specifying the version under \"build\"→[buildProfileName]→\"ios\"→\"bundler\" in eas.json.`;\n docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';\n}\n\nexport class MissingGoogleServicesJson extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_JSON_ERROR;\n message =\n '\"google-services.json\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class MissingGoogleServicesPlist extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_PLIST_ERROR;\n message =\n '\"GoogleService-Info.plist\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class UnknownFastlaneError extends UserError {\n errorCode = ErrorCode.UNKNOWN_FASTLANE_ERROR;\n message = `Fastlane build failed with unknown error. Please refer to the \"Run fastlane\" and \"Xcode Logs\" phases.\nFastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.`;\n}\n\nexport class IncompatiblePodsManagedWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile in eas.json to invalidate the cache.'\n }\n - Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class IncompatiblePodsGenericWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile in eas.json to invalidate the cache.'\n }\n - Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class YarnLockChecksumError extends UserError {\n errorCode = ErrorCode.YARN_LOCK_CHECKSUM_ERROR;\n\n constructor(packageName: string) {\n super();\n this.message = `Checksum for package \"${packageName}\" does not match value in registry. To fix that:\n- run \"yarn cache clean\"\n- remove yarn.lock (or only the section for that package)\n- run \"yarn install --force\"`;\n }\n}\n\nexport class NpmCorruptedPackageError extends UserError {\n errorCode = ErrorCode.NPM_PACKAGE_CORRUPTED_ERROR;\n\n constructor(packageName: string) {\n super();\n this.message = `Package ${packageName} is corrupted, try switching to public npm registry by adding (\"eas-build-pre-install\": \"npm config set registry https://registry.npmjs.org/\") in the \"scripts\" section in package.json. If this resolves the issue please report it as a bug.`;\n }\n}\n\nexport class UnknownGradleError extends UserError {\n errorCode = ErrorCode.UNKNOWN_GRADLE_ERROR;\n message = 'Gradle build failed with unknown error. Please see logs for the \"Run gradlew\" phase.';\n}\n"]}
package/dist/ios.d.ts CHANGED
@@ -11,7 +11,7 @@ export interface DistributionCertificate {
11
11
  dataBase64: string;
12
12
  password: string;
13
13
  }
14
- export declare const builderBaseImages: readonly ["default", "latest", "stable", "macos-big-sur-11.4-xcode-12.5", "macos-big-sur-11.4-xcode-13.0", "macos-monterey-12.1-xcode-13.2", "macos-monterey-12.3-xcode-13.3"];
14
+ export declare const builderBaseImages: readonly ["default", "latest", "stable", "macos-big-sur-11.4-xcode-12.5", "macos-big-sur-11.4-xcode-13.0", "macos-monterey-12.1-xcode-13.2", "macos-monterey-12.3-xcode-13.3", "macos-monterey-12.4-xcode-13.4"];
15
15
  export declare const sdkVersionToDefaultBuilderImage: Record<string, typeof builderBaseImages[number]>;
16
16
  export interface BuilderEnvironment {
17
17
  image?: typeof builderBaseImages[number];
package/dist/ios.js CHANGED
@@ -22,6 +22,7 @@ exports.builderBaseImages = [
22
22
  'macos-big-sur-11.4-xcode-13.0',
23
23
  'macos-monterey-12.1-xcode-13.2',
24
24
  'macos-monterey-12.3-xcode-13.3',
25
+ 'macos-monterey-12.4-xcode-13.4',
25
26
  ];
26
27
  exports.sdkVersionToDefaultBuilderImage = {
27
28
  '<=44': 'macos-big-sur-11.4-xcode-13.0',
package/dist/ios.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ios.js","sourceRoot":"","sources":["../src/ios.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,qCASkB;AAIlB,MAAM,uBAAuB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC;IAChD,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClD,uBAAuB,EAAE,aAAG,CAAC,MAAM,CAAC;QAClC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC5C,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC;AAOH,MAAM,sBAAsB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,OAAO,CACjD,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EACvB,uBAAuB,CACxB,CAAC;AAUW,QAAA,iBAAiB,GAAG;IAC/B,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,+BAA+B;IAC/B,+BAA+B;IAC/B,gCAAgC;IAChC,gCAAgC;CACxB,CAA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EAAE,oBAAW,CAAC,OAAO,EAAE;IAC5B,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE;IAExB,UAAU;IACV,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE;IACpB,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE;IAChC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE;IAE1B,UAAU;IACV,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;IAEtB,YAAY,EAAE,aAAG,CAAC,MAAM,CAAC;QACvB,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE;KAC9B,CAAC;CACH,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\n\nimport {\n ArchiveSource,\n ArchiveSourceSchema,\n Env,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n} from './common';\n\nexport type DistributionType = 'store' | 'internal' | 'simulator';\n\nconst TargetCredentialsSchema = Joi.object().keys({\n provisioningProfileBase64: Joi.string().required(),\n distributionCertificate: Joi.object({\n dataBase64: Joi.string().required(),\n password: Joi.string().allow('').required(),\n }).required(),\n});\n\nexport interface TargetCredentials {\n provisioningProfileBase64: string;\n distributionCertificate: DistributionCertificate;\n}\n\nconst BuildCredentialsSchema = Joi.object().pattern(\n Joi.string().required(),\n TargetCredentialsSchema\n);\n\ntype Target = string;\nexport type BuildCredentials = Record<Target, TargetCredentials>;\n\nexport interface DistributionCertificate {\n dataBase64: string;\n password: string;\n}\n\nexport const builderBaseImages = [\n 'default',\n 'latest',\n 'stable',\n 'macos-big-sur-11.4-xcode-12.5',\n 'macos-big-sur-11.4-xcode-13.0',\n 'macos-monterey-12.1-xcode-13.2',\n 'macos-monterey-12.3-xcode-13.3',\n] as const;\n\nexport const sdkVersionToDefaultBuilderImage: Record<string, typeof builderBaseImages[number]> = {\n '<=44': 'macos-big-sur-11.4-xcode-13.0',\n '45': 'macos-monterey-12.3-xcode-13.3',\n};\n\nexport interface BuilderEnvironment {\n image?: typeof builderBaseImages[number];\n node?: string;\n yarn?: string;\n expoCli?: string;\n bundler?: string;\n fastlane?: string;\n cocoapods?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string().valid(...builderBaseImages),\n node: Joi.string(),\n yarn: Joi.string(),\n expoCli: Joi.string(),\n bundler: Joi.string(),\n fastlane: Joi.string(),\n cocoapods: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface Job {\n type: Workflow;\n projectArchive: ArchiveSource;\n platform: Platform.IOS;\n projectRootDirectory: string;\n releaseChannel?: string;\n updates?: {\n channel?: string;\n };\n secrets: {\n buildCredentials?: BuildCredentials;\n environmentSecrets?: Env;\n };\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n simulator?: boolean;\n\n scheme?: string;\n buildConfiguration?: string;\n artifactPath?: string;\n\n username?: string;\n\n experimental?: {\n prebuildCommand?: string;\n };\n}\n\nexport const JobSchema = Joi.object({\n type: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n projectArchive: ArchiveSourceSchema.required(),\n platform: Joi.string().valid(Platform.IOS).required(),\n projectRootDirectory: Joi.string().required(),\n releaseChannel: Joi.string(),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.object({\n buildCredentials: BuildCredentialsSchema,\n environmentSecrets: EnvSchema,\n }).required(),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n simulator: Joi.boolean(),\n\n // generic\n scheme: Joi.string(),\n buildConfiguration: Joi.string(),\n artifactPath: Joi.string(),\n\n // managed\n username: Joi.string(),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
1
+ {"version":3,"file":"ios.js","sourceRoot":"","sources":["../src/ios.ts"],"names":[],"mappings":";;;;;;AAA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,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n} from './common';\n\nexport type DistributionType = 'store' | 'internal' | 'simulator';\n\nconst TargetCredentialsSchema = Joi.object().keys({\n provisioningProfileBase64: Joi.string().required(),\n distributionCertificate: Joi.object({\n dataBase64: Joi.string().required(),\n password: Joi.string().allow('').required(),\n }).required(),\n});\n\nexport interface TargetCredentials {\n provisioningProfileBase64: string;\n distributionCertificate: DistributionCertificate;\n}\n\nconst BuildCredentialsSchema = Joi.object().pattern(\n Joi.string().required(),\n TargetCredentialsSchema\n);\n\ntype Target = string;\nexport type BuildCredentials = Record<Target, TargetCredentials>;\n\nexport interface DistributionCertificate {\n dataBase64: string;\n password: string;\n}\n\nexport const builderBaseImages = [\n 'default',\n 'latest',\n 'stable',\n 'macos-big-sur-11.4-xcode-12.5',\n 'macos-big-sur-11.4-xcode-13.0',\n 'macos-monterey-12.1-xcode-13.2',\n 'macos-monterey-12.3-xcode-13.3',\n 'macos-monterey-12.4-xcode-13.4',\n] as const;\n\nexport const sdkVersionToDefaultBuilderImage: Record<string, typeof builderBaseImages[number]> = {\n '<=44': 'macos-big-sur-11.4-xcode-13.0',\n '45': 'macos-monterey-12.3-xcode-13.3',\n};\n\nexport interface BuilderEnvironment {\n image?: typeof builderBaseImages[number];\n node?: string;\n yarn?: string;\n expoCli?: string;\n bundler?: string;\n fastlane?: string;\n cocoapods?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string().valid(...builderBaseImages),\n node: Joi.string(),\n yarn: Joi.string(),\n expoCli: Joi.string(),\n bundler: Joi.string(),\n fastlane: Joi.string(),\n cocoapods: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface Job {\n type: Workflow;\n projectArchive: ArchiveSource;\n platform: Platform.IOS;\n projectRootDirectory: string;\n releaseChannel?: string;\n updates?: {\n channel?: string;\n };\n secrets: {\n buildCredentials?: BuildCredentials;\n environmentSecrets?: Env;\n };\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n simulator?: boolean;\n\n scheme?: string;\n buildConfiguration?: string;\n artifactPath?: string;\n\n username?: string;\n\n experimental?: {\n prebuildCommand?: string;\n };\n}\n\nexport const JobSchema = Joi.object({\n type: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n projectArchive: ArchiveSourceSchema.required(),\n platform: Joi.string().valid(Platform.IOS).required(),\n projectRootDirectory: Joi.string().required(),\n releaseChannel: Joi.string(),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.object({\n buildCredentials: BuildCredentialsSchema,\n environmentSecrets: EnvSchema,\n }).required(),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n simulator: Joi.boolean(),\n\n // generic\n scheme: Joi.string(),\n buildConfiguration: Joi.string(),\n artifactPath: Joi.string(),\n\n // managed\n username: Joi.string(),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "0.2.73",
3
+ "version": "0.2.76",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [