-
-
Notifications
You must be signed in to change notification settings - Fork 197
Add library with relative path to .xcodeproj file #694
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
Conversation
✅ |
|
||
let project = this.createPbxProj(); | ||
|
||
project.addFramework(path.join(targetPath, frameworkName + ".framework"), { customFramework: true, embed: true }); | ||
let frameworkPath = path.relative("platforms/ios", path.join(targetPath, frameworkName + ".framework")); |
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.
platforms/ios
- will this work on Windows?
Maybe:
let frameworkPath = path.relative(path.join("platforms", "ios"), path.join(targetPath, frameworkName + ".framework"));
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.
Also, don't you need full paths on both places:
let frameworkPath = path.relative(path.join(this.$projectData.projectDir, "platforms", "ios"), path.join(fullTargetPath, frameworkName + ".framework"));
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.
"platforms/ios - will this work on Windows?" - This service is executed only on OSX.
"Also, don't you need full paths on both places:" - No, I don't need the fullPath, a just need the relative path to native project.
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.
👍
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.
By the way, it works - but path.join will return a string with backslashes.
👍 |
…tive-path Add library with relative path to .xcodeproj file
Fixes #679