diff --git a/CHANGELOG.md b/CHANGELOG.md index 08c4f6ec8..6a6830c72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # App Center SDK for React Native Change Log +## Version 2.6.2 (Under development) + +### App Center + +#### iOS + +* **[Fix]** Fix an error where **appcenter.podspec.json** could not be found when using CocoaPods version 1.8.x. +* **[Fix]** Fix issues with `use_frameworks!` directive. + +___ + ## Version 2.6.1 ### App Center diff --git a/appcenter-analytics/ios/appcenter-analytics.podspec b/appcenter-analytics/ios/appcenter-analytics.podspec index d5dde6f71..9aa80e514 100644 --- a/appcenter-analytics/ios/appcenter-analytics.podspec +++ b/appcenter-analytics/ios/appcenter-analytics.podspec @@ -21,4 +21,5 @@ Pod::Spec.new do |s| s.dependency 'AppCenterReactNativeShared' s.dependency 'AppCenter/Analytics' s.dependency 'React' + s.static_framework = true end diff --git a/appcenter-auth/ios/appcenter-auth.podspec b/appcenter-auth/ios/appcenter-auth.podspec index 4200895db..95c8d9191 100644 --- a/appcenter-auth/ios/appcenter-auth.podspec +++ b/appcenter-auth/ios/appcenter-auth.podspec @@ -21,4 +21,5 @@ Pod::Spec.new do |s| s.dependency 'AppCenterReactNativeShared' s.dependency 'AppCenter/Auth' s.dependency 'React' + s.static_framework = true end diff --git a/appcenter-crashes/ios/appcenter-crashes.podspec b/appcenter-crashes/ios/appcenter-crashes.podspec index 2b77bdd8a..f67ebb1cd 100644 --- a/appcenter-crashes/ios/appcenter-crashes.podspec +++ b/appcenter-crashes/ios/appcenter-crashes.podspec @@ -22,4 +22,5 @@ Pod::Spec.new do |s| s.dependency 'AppCenterReactNativeShared' s.dependency 'AppCenter/Crashes' s.dependency 'React' + s.static_framework = true end diff --git a/appcenter-data/ios/appcenter-data.podspec b/appcenter-data/ios/appcenter-data.podspec index 9ba3b04c9..77e5c8b96 100644 --- a/appcenter-data/ios/appcenter-data.podspec +++ b/appcenter-data/ios/appcenter-data.podspec @@ -21,4 +21,5 @@ Pod::Spec.new do |s| s.dependency 'AppCenterReactNativeShared' s.dependency 'AppCenter/Data' s.dependency 'React' + s.static_framework = true end diff --git a/appcenter-push/ios/appcenter-push.podspec b/appcenter-push/ios/appcenter-push.podspec index 1b114c6e1..abaf8ae95 100644 --- a/appcenter-push/ios/appcenter-push.podspec +++ b/appcenter-push/ios/appcenter-push.podspec @@ -22,4 +22,5 @@ Pod::Spec.new do |s| s.dependency 'AppCenterReactNativeShared' s.dependency 'AppCenter/Push' s.dependency 'React' + s.static_framework = true end diff --git a/appcenter/ios/appcenter.podspec b/appcenter/ios/appcenter-core.podspec similarity index 72% rename from appcenter/ios/appcenter.podspec rename to appcenter/ios/appcenter-core.podspec index b021eccc4..855d6e9bf 100644 --- a/appcenter/ios/appcenter.podspec +++ b/appcenter/ios/appcenter-core.podspec @@ -3,7 +3,9 @@ require 'json' package = JSON.parse(File.read(File.join(__dir__, '../package.json'))) Pod::Spec.new do |s| - s.name = package['name'] + # The name is hardcoded due to a name conflict, resulting in the error 'Errno::ENOENT - No such file or directory @ rb_sysopen - appcenter.podspec.json' error. + # See https://github.com/microsoft/appcenter-sdk-react-native/issues/760 + s.name = 'appcenter-core' s.version = package['version'] s.summary = package['description'] s.license = package['license'] @@ -20,4 +22,5 @@ Pod::Spec.new do |s| s.vendored_frameworks = 'AppCenterReactNativeShared/AppCenterReactNativeShared.framework' s.dependency 'AppCenterReactNativeShared' s.dependency 'React' + s.static_framework = true end diff --git a/appcenter/react-native.config.js b/appcenter/react-native.config.js index 4131f5401..9d40c82a9 100644 --- a/appcenter/react-native.config.js +++ b/appcenter/react-native.config.js @@ -4,7 +4,7 @@ module.exports = { dependency: { platforms: { ios: { - podspecPath: path.join(__dirname, 'ios', 'appcenter.podspec') + podspecPath: path.join(__dirname, 'ios', 'appcenter-core.podspec') }, android: { packageInstance: 'new AppCenterReactNativePackage(getApplication())'