-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Move iOS package from framework to xcframework #8805
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
Changes from all commits
56ae1ba
092c572
24b652d
973e2d4
ae8108f
62a99d7
3e4aca0
5c1a333
2326f50
96b3be2
96e622b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ def parse_args(): | |
parser.add_argument("--framework-info-file", type=pathlib.Path, required=True, | ||
help="Path to the framework_info.json file containing additional values for the podspec. " | ||
"This file should be generated by CMake in the build directory.") | ||
parser.add_argument("--public-headers-dir", type=pathlib.Path, required=True, | ||
help="Path to the public headers directory to include in the pod.") | ||
parser.add_argument("--framework-dir", type=pathlib.Path, required=True, | ||
help="Path to the onnxruntime.framework directory to include in the pod.") | ||
|
||
|
@@ -50,6 +52,8 @@ def main(): | |
# copy the necessary files to the staging directory | ||
framework_dir = args.framework_dir.resolve() | ||
shutil.copytree(framework_dir, staging_dir / framework_dir.name, dirs_exist_ok=True) | ||
public_headers_dir = args.public_headers_dir.resolve() | ||
shutil.copytree(public_headers_dir, staging_dir / public_headers_dir.name, dirs_exist_ok=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
copy_repo_relative_to_dir(["LICENSE"], staging_dir) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually we don't need to copy in multiple steps, we can copy everything from the framework_out directly, since it contains everything we need here, |
||
|
||
# generate the podspec file from the template | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: if we don't mention the number it won't need to be updated again. could make this change next time though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove in a later PR