Skip to content

Commit

Permalink
support the multiple platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
李杰 committed Sep 28, 2018
1 parent 8c30b1c commit 4d78f5e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
22 changes: 11 additions & 11 deletions JJException.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "JJException"
s.version = "0.0.7"
s.version = "0.0.8"
s.summary = "Handle the objective-c crash exception."

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -65,13 +65,13 @@ Pod::Spec.new do |s|

# s.platform = :ios
# s.platform = :ios, "5.0"
s.platform = :ios, "8.0"
#s.platform = :ios, "8.0"

# When using multiple platforms
# s.ios.deployment_target = "5.0"
# s.osx.deployment_target = "10.7"
# s.watchos.deployment_target = "2.0"
# s.tvos.deployment_target = "9.0"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.7"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"


# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand All @@ -93,11 +93,11 @@ Pod::Spec.new do |s|

s.default_subspec = 'All'
s.subspec 'All' do |spec|
spec.ios.dependency 'JJException/Swizzle'
spec.ios.dependency 'JJException/ARC'
spec.ios.dependency 'JJException/MRC'
spec.ios.dependency 'JJException/Main'
spec.ios.dependency 'JJException/DeallocBlock'
spec.dependency 'JJException/Swizzle'
spec.dependency 'JJException/ARC'
spec.dependency 'JJException/MRC'
spec.dependency 'JJException/Main'
spec.dependency 'JJException/DeallocBlock'
end

s.subspec 'ARC' do |spec|
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,21 @@
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "JJException/Source/MRC/NSObject+KVOCrash.m"
timestampString = "559797991.907923"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "118"
endingLineNumber = "118"
landmarkName = "-dealloc"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
5 changes: 5 additions & 0 deletions JJException/Source/MRC/NSObject+KVOCrash.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ @interface KVOObjectContainer : NSObject
/**
NSMutableSet safe-thread
*/

#if OS_OBJECT_HAVE_OBJC_SUPPORT
@property(nonatomic,readwrite,retain)dispatch_semaphore_t kvoLock;
#else
@property(nonatomic,readwrite,assign)dispatch_semaphore_t kvoLock;
#endif

- (void)addKVOObjectItem:(KVOObjectItem*)item;

Expand Down

0 comments on commit 4d78f5e

Please sign in to comment.