Skip to content
Browse files

Simplify and fix loading CrashReporter.framework for QuincyKit/Hockey…

…SDK.
  • Loading branch information...
1 parent 9349504 commit a80d64c7f0fb9fbe765fb1ea7d11ba056cefdc11 @alloy alloy committed Jan 30, 2012
View
13 HockeySDK/2.2.1/HockeySDK.podspec
@@ -19,16 +19,5 @@ Pod::Spec.new do |s|
s.source_files = 'Classes'
s.resources = 'Resources/Hockey.bundle', 'Resources/Quincy.bundle'
s.frameworks = 'QuartzCore', 'SystemConfiguration', 'CrashReporter'
- s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(BUILT_PRODUCTS_DIR)/Pods/Frameworks"' }
-
- def s.post_install(target_installer)
- # Add a copy build phase and make it copy the CrashReporter.framework to the shared BUILT_PRODUCTS_DIR,
- # so that both the Pods project and the user's project will pick it up.
- phase = target_installer.target.buildPhases.add(Xcodeproj::Project::PBXCopyFilesBuildPhase, 'dstPath' => 'Pods/Frameworks')
- file = target_installer.project.main_group.files.new('path' => 'HockeySDK/Vendor/CrashReporter.framework')
- phase.files << file.buildFiles.new
- phases = target_installer.target.attributes['buildPhases']
- phases.delete(phase.uuid)
- phases.insert(1, phase.uuid)
- end
+ s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/HockeySDK/Vendor"' }
end
View
13 HockeySDK/2.2.2/HockeySDK.podspec
@@ -19,16 +19,5 @@ Pod::Spec.new do |s|
s.source_files = 'Classes'
s.resources = 'Resources/Hockey.bundle', 'Resources/Quincy.bundle'
s.frameworks = 'QuartzCore', 'SystemConfiguration', 'CrashReporter'
- s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(BUILT_PRODUCTS_DIR)/Pods/Frameworks"' }
-
- def s.post_install(target_installer)
- # Add a copy build phase and make it copy the CrashReporter.framework to the shared BUILT_PRODUCTS_DIR,
- # so that both the Pods project and the user's project will pick it up.
- phase = target_installer.target.buildPhases.add(Xcodeproj::Project::PBXCopyFilesBuildPhase, 'dstPath' => 'Pods/Frameworks')
- file = target_installer.project.main_group.files.new('path' => 'HockeySDK/Vendor/CrashReporter.framework')
- phase.files << file.buildFiles.new
- phases = target_installer.target.attributes['buildPhases']
- phases.delete(phase.uuid)
- phases.insert(1, phase.uuid)
- end
+ s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/HockeySDK/Vendor"' }
end
View
14 QuincyKit/2.1.1/QuincyKit.podspec
@@ -15,17 +15,5 @@ Pod::Spec.new do |s|
s.clean_paths = 'client/iOS/QuincyLib', 'client/Mac', 'demo', 'server'
s.frameworks = 'SystemConfiguration', 'CrashReporter'
- # This is where the framework will be located after the copy build phase, that’s added in post_install, has copied it.
- s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(BUILT_PRODUCTS_DIR)/Pods/Frameworks"' }
-
- def s.post_install(target_installer)
- # Add a copy build phase and make it copy the the CrashReporter.framework to the shared BUILT_PRODUCTS_DIR,
- # so that both the Pods project and the user's project will pick it up.
- phase = target_installer.target.buildPhases.add(Xcodeproj::Project::PBXCopyFilesBuildPhase, 'dstPath' => 'Pods/Frameworks')
- file = target_installer.project.main_group.files.new('path' => 'QuincyKit/client/iOS/CrashReporter.framework')
- phase.files << file.buildFiles.new
- phases = target_installer.target.attributes['buildPhases']
- phases.delete(phase.uuid)
- phases.insert(1, phase.uuid)
- end
+ s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/QuincyKit/client/iOS"' }
end
View
14 QuincyKit/2.1.2/QuincyKit.podspec
@@ -14,17 +14,5 @@ Pod::Spec.new do |s|
s.clean_paths = 'client/iOS/QuincyLib', 'client/Mac', 'demo', 'server'
s.frameworks = 'SystemConfiguration', 'CrashReporter'
- # This is where the framework will be located after the copy build phase, that’s added in post_install, has copied it.
- s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(BUILT_PRODUCTS_DIR)/Pods/Frameworks"' }
-
- def s.post_install(target_installer)
- # Add a copy build phase and make it copy the the CrashReporter.framework to the shared BUILT_PRODUCTS_DIR,
- # so that both the Pods project and the user's project will pick it up.
- phase = target_installer.target.buildPhases.add(Xcodeproj::Project::PBXCopyFilesBuildPhase, 'dstPath' => 'Pods/Frameworks')
- file = target_installer.project.main_group.files.new('path' => 'QuincyKit/client/iOS/CrashReporter.framework')
- phase.files << file.buildFiles.new
- phases = target_installer.target.attributes['buildPhases']
- phases.delete(phase.uuid)
- phases.insert(1, phase.uuid)
- end
+ s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/QuincyKit/client/iOS"' }
end
View
14 QuincyKit/2.1.3/QuincyKit.podspec
@@ -14,17 +14,5 @@ Pod::Spec.new do |s|
s.clean_paths = 'client/iOS/QuincyLib', 'client/Mac', 'demo', 'server'
s.frameworks = 'SystemConfiguration', 'CrashReporter'
- # This is where the framework will be located after the copy build phase, that’s added in post_install, has copied it.
- s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(BUILT_PRODUCTS_DIR)/Pods/Frameworks"' }
-
- def s.post_install(target_installer)
- # Add a copy build phase and make it copy the the CrashReporter.framework to the shared BUILT_PRODUCTS_DIR,
- # so that both the Pods project and the user's project will pick it up.
- phase = target_installer.target.buildPhases.add(Xcodeproj::Project::PBXCopyFilesBuildPhase, 'dstPath' => 'Pods/Frameworks')
- file = target_installer.project.main_group.files.new('path' => 'QuincyKit/client/iOS/CrashReporter.framework')
- phase.files << file.buildFiles.new
- phases = target_installer.target.attributes['buildPhases']
- phases.delete(phase.uuid)
- phases.insert(1, phase.uuid)
- end
+ s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/QuincyKit/client/iOS"' }
end

0 comments on commit a80d64c

Please sign in to comment.
Something went wrong with that request. Please try again.