Skip to content

Commit

Permalink
Merge pull request #1281 from OneSignal/fixing_distribution_of_xcfram…
Browse files Browse the repository at this point in the history
…ework

Fixing Multiple Commands Produce cocoapods build issue
  • Loading branch information
emawby authored and nan-li committed Oct 30, 2023
2 parents 6826f46 + d7ff2e1 commit 2429766
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 8 additions & 2 deletions OneSignal.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/OneSignal/OneSignal-iOS-SDK.git", :tag => s.version.to_s }
s.platform = :ios, "11.0"
s.requires_arc = true

s.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignalFramework.xcframework'
s.default_subspec = "OneSignalComplete"
s.subspec 'OneSignalCore' do |ss|
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework'
end
Expand Down Expand Up @@ -72,4 +72,10 @@ Pod::Spec.new do |s|
ss.dependency 'OneSignal/OneSignalUser'
ss.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignalFramework.xcframework'
end

s.subspec 'OneSignalComplete' do |ss|
ss.dependency 'OneSignal/OneSignal'
ss.dependency 'OneSignal/OneSignalLocation'
ss.dependency 'OneSignal/OneSignalInAppMessages'
end
end
9 changes: 7 additions & 2 deletions OneSignalXCFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/OneSignal/OneSignal-iOS-SDK.git", :tag => s.version.to_s }
s.platform = :ios, '11.0'
s.requires_arc = true

s.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignalFramework.xcframework'
s.default_subspec = "OneSignalComplete"

s.subspec 'OneSignalCore' do |ss|
ss.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework'
Expand Down Expand Up @@ -73,4 +72,10 @@ Pod::Spec.new do |s|
ss.dependency 'OneSignalXCFramework/OneSignalUser'
ss.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignalFramework.xcframework'
end

s.subspec 'OneSignalComplete' do |ss|
ss.dependency 'OneSignalXCFramework/OneSignal'
ss.dependency 'OneSignalXCFramework/OneSignalLocation'
ss.dependency 'OneSignalXCFramework/OneSignalInAppMessages'
end
end

0 comments on commit 2429766

Please sign in to comment.