Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds subspec workaround. #23

Merged
merged 2 commits into from
Apr 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Without use_frameworks!
target 'Segment-Firebase_Example' do
# Use default subspec
pod 'Segment-Firebase', :path => '../'

target 'Segment-Firebase_Tests' do
Expand All @@ -9,3 +11,23 @@ target 'Segment-Firebase_Example' do
pod 'Expecta'
end
end


## With use_frameworks!
# Use only 'Segment-Firebase/StaticLibWorkaround'

#use_frameworks!
#
#target 'Segment-Firebase_Example' do
# pod 'Segment-Firebase/StaticLibWorkaround', :path => '../'
# pod 'Firebase'
#
#end
#
#target 'Segment-Firebase_Tests' do
# inherit! :search_paths
#
# pod 'Specta'
# pod 'Expecta'
# pod 'OCMockito'
#end
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SDK ?= "iphonesimulator"
DESTINATION ?= "platform=iOS Simulator,name=iPhone 5"
DESTINATION ?= "platform=iOS Simulator,name=iPhone 7"
PROJECT := Segment-Firebase
XC_ARGS := -scheme $(PROJECT)-Example -workspace Example/$(PROJECT).xcworkspace -sdk $(SDK) -destination $(DESTINATION) ONLY_ACTIVE_ARCH=NO

Expand Down
10 changes: 10 additions & 0 deletions Segment-Firebase.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@ Pod::Spec.new do |s|
# This will bundle in Firebase Dynamic Link support
dynamiclinks.dependency 'Firebase/DynamicLinks', '~> 4.0'
end


s.subspec 'StaticLibWorkaround' do |workaround|
# For users who are unable to bundle static libraries as dependencies
# you can choose this subspec, but be sure to include the folling in your podfile
# pod 'Firebase'
# Please manually add the following file preserved by Cocoapods to your xcodeproj file
workaround.preserve_paths = 'Segment-Firebase/Classes/**/*'
end

end