Comments (5)
Hi, thanks for the question. Before i can answer, please:
- Use the code blocks to see all the content of your snippet
- Write what is the code you are expecting or what is wrong with the snippet you are posting. Otherwise the snippet looks ok to me.
- What do you mean with "Title Description"
from mod-pbxproj.
Thanks, the documentation is incorrect.
It should be:
project.add_flags({'OTHER_LDFLAGS': ['-ObjC', '-all_load', '-fobjc-arc']})
from mod-pbxproj.
Hi,Thank you for your answer.
I know how to add the frameworks. My code blocks:
pbx_path = "/Users/ajax/tzcq/Unity-iphone.xcodeproj/project.pbxproj"
project = XcodeProject.Load(pbx_path)
framework = project.get_or_create_group("Frameworks")
project.add_file_if_doesnt_exist("/Users/ajax/Desktop/xxx.framework", parent=framework)
project.save()
But I do not know to add the Embed Frameworks in PBXCopyFilesBuildPhase section.
The following contents was taken from the project.pbxproj.
/* Begin PBXCopyFilesBuildPhase section */
96AABB551CC874F1000DF362 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
96AABB541CC874F1000DF362 /* xxx.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
How did I add the Embed Frameworks in PBXCopyFilesBuildPhase section?
Can you provide the interface or Instructions about adding the Embed Frameworks ?
from mod-pbxproj.
There is no direct function to do that at the moment. I haven't done it myself, but It can be achieved with the result of the add_file_if_doesnt_exist
function and iterating over the project.objects
dictionary.
I will mark this issue as an improvement to be done.
from mod-pbxproj.
Thanks!
By the way, I will feedback a question.
project.add_flags('OTHER_LDFLAGS', ['-ObjC', '-all_load', '-fobjc-arc'])
The flags can't be added to the project.pbxproj in the 1.3.0 version with this method. I don't know whether to improve the problem in the 1.3.1 version
from mod-pbxproj.
Related Issues (20)
- again How to add one framework just want to build it output as a framework with my main proj HOT 2
- [BUG]When I use setup.py to install pbxproj module syntax error occured. HOT 1
- conda forge package HOT 2
- [FEAT] How to add sub-project into current project, but sub-project has two kinds of target type
- [BUG] This one project loads but doesn't save HOT 2
- Moving an existing group to another group HOT 2
- update flag HOT 1
- [BUG] Update multible Flags HOT 2
- [FEAT] Can I change setting on Build Settings > Signing HOT 1
- [FEAT] How do you get a flag value ? HOT 1
- [FEAT]Can I find my favorite books at will?
- Referencing files into UnityFramework
- File or folder association settings
- add_package [BUG]
- remove a file with fileID HOT 1
- [BUG] Local package XCLocalSwiftPackageReference is not getting parsed properly HOT 1
- [BUG] Build steps that have shell commands lose formatting when project is saved
- [FEAT] add flag with null value
- Cannot create subfolders HOT 2
- [BUG] Exception is thrown when finding `productRef` instead of `fileRef`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mod-pbxproj.