Skip to content

Commit

Permalink
Merge pull request #33 from antvis/fix_ios_bug
Browse files Browse the repository at this point in the history
Fix ios bug
  • Loading branch information
weiqingtangx authored Dec 11, 2022
2 parents 38cc99e + 38f941e commit 25a9054
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
11 changes: 10 additions & 1 deletion F2.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |spec|

spec.name = "F2"
spec.version = "2.1.11"
spec.version = "2.1.16"
spec.summary = "An elegant, interactive and flexible native charting library for mobile."
spec.description = "F2Native is born for mobile visual development. It is out-of-the-box,cross-platform, high-performance visualization solution . Support Android and iOS perfect, moreover have high-performance experience in low-end mobile. Based on the grammar of graphics, F2Native provides all the chart types you'll need. Our mobile design guidelines enable better user experience in mobile visualzation projects."

Expand All @@ -29,6 +29,15 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '9.0'
spec.requires_arc = true

#fix:Cannot code sign because the target does not have an Info.plist
spec.user_target_xcconfig = {
'GENERATE_INFOPLIST_FILE' => 'YES'
}

spec.pod_target_xcconfig = {
'GENERATE_INFOPLIST_FILE' => 'YES'
}

#保护目录结构不变,如果不设置,所有头文件都将被放到同一个目录下 当需要暴露c++头文件后在设置
# spec.header_mappings_dir = "core/**"
end
4 changes: 2 additions & 2 deletions demos/ios/Demos-Swift/Demos-Swift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 55;
objectVersion = 53;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -159,7 +159,7 @@
};
};
buildConfigurationList = CC79F1FB285AB18100A5623C /* Build configuration list for PBXProject "Demos-Swift" */;
compatibilityVersion = "Xcode 13.0";
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down
2 changes: 1 addition & 1 deletion demos/ios/Demos/Podfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
platform :ios, '9.0'

target "F2Native" do
pod 'F2', :path => '../../../'
pod 'F2'
end

1 change: 1 addition & 0 deletions ios/F2/F2CanvasView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
if(self = [super initWithFrame:frame]) {
self.canvasContext = [[F2CanvasContext alloc] initWithSize:frame.size];
self.listener = [[F2GestureListener alloc] initWithView:self];
self.backgroundColor = UIColor.clearColor;
}
return self;
}
Expand Down

0 comments on commit 25a9054

Please sign in to comment.