Skip to content

Commit

Permalink
Edit Podspec to support non modular header for Swift
Browse files Browse the repository at this point in the history
  • Loading branch information
baoluo committed Nov 20, 2015
1 parent 72079f2 commit 04eb1f2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
7 changes: 6 additions & 1 deletion Libraries/ECLogging/Generic/ECASLClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
// --------------------------------------------------------------------------

@import Foundation;
#import <asl.h>
#if !(TARGET_IPHONE_SIMULATOR)
@import asl;
#else
@import aslSimu;
#endif
//#import <asl.h>

@interface ECASLClient : NSObject
{
Expand Down
8 changes: 6 additions & 2 deletions boxcar-ios-framework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "boxcar-ios-framework"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "iOS Push Framework for Boxcar"

s.osx.deployment_target = '10.7'
Expand All @@ -31,10 +31,14 @@ s.source = { :git => "https://github.com/processone/boxcar-ios-framewo
s.platform = :ios, '7.0'
s.requires_arc = true

s.source_files = ['Boxcar/**/*', 'Libraries/ECLogging/**/*', 'Libraries/AFNetworking/**/*']
s.source_files = ['Boxcar/**/*', 'Libraries/ECLogging/**/*', 'Libraries/AFNetworking/**/*', 'module/module.modulemap']
#, 'Libraries/**/*'

s.preserve_path = 'module/module.modulemap'
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/module', 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }

s.frameworks = 'UIKit', 'AdSupport', 'Foundation', 'SystemConfiguration', 'MobileCoreServices'
s.dependency 'OHHTTPStubs'
s.dependency 'OCMock'

end
Binary file added module/.DS_Store
Binary file not shown.
9 changes: 9 additions & 0 deletions module/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module asl [system] {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/asl.h"
export *
}

module aslSimu [system] {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/asl.h"
export *
}

0 comments on commit 04eb1f2

Please sign in to comment.