Skip to content

Commit 7896a45

Browse files
emadgitemad
and
emad
authored
Fix for RNAnalytics not found issue (#30) (#116)
* fix(context): fix for issue RNAnalytics not found #30 * docs(context): revert readme auto changes * docs(context): revert one more readme auto changes * fix(context): change format only for factory_header * docs(context): revert auto changes Co-authored-by: emad <[email protected]>
1 parent cd9da63 commit 7896a45

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/integrations/src/gen-integrations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ async function prepareiOS({
6969
const xcodeProject = 'ios/RNAnalyticsIntegration.xcodeproj'
7070
const targetXcodeProject = `ios/${nativeModule}.xcodeproj`
7171
const pod_name = `RNAnalyticsIntegration-${slug('-')}`
72+
const framework_name = `Segment_${slug()}`
7273
const {
7374
pod: {
7475
name: pod_dependency = `Segment-${slug()}`,
@@ -79,7 +80,7 @@ async function prepareiOS({
7980
const classSlug = `${prefix}${slug()}IntegrationFactory`
8081
const {
8182
className = classSlug,
82-
framework = pod_dependency,
83+
framework = framework_name,
8384
header = classSlug
8485
} = ios
8586

packages/integrations/template/Pod.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ Pod::Spec.new do |s|
2525
s.dependency '{{{pod_dependency}}}'{{#pod_version}}, '~> {{{pod_version}}}'{{/pod_version}}
2626
s.dependency 'Analytics'
2727
s.dependency 'React'
28+
s.dependency 'RNAnalytics'
2829
end

0 commit comments

Comments
 (0)