how to write a program or a shell script to remove an existing xxx.framework(not imported from apple's libraries) from my project
<p><em>system:mac osx 10.11.2 , xcode 7.2</em></p>
<p>i want to write a program or a shell script to <strong>remove/add an existing xxx.framework(not imported from apple's libraries)</strong> from my project.</p>
<p>i tried to use <a href="https://github.com/appsquickly/XcodeEditor" rel="nofollow noreferrer">XCodeEditor</a> like this:</p>
<pre><code>XCProject *asProject = [[XCProject alloc] initWithFilePath:@&quot;/Users/xxx/Desktop/project/test/testXCodeConfig/AAA.xcodeproj&quot;];
XCTarget *aTarget = [asProject targetWithName:@&quot;ccc&quot;];
XCSourceFile *file = [asProject fileWithName:@&quot;bbb.framework&quot;];
NSLog(@&quot;%d&quot;,originTarget.members.count);
[aTarget removeMemberWithKey:file.key];
NSLog(@&quot;%d&quot;,aTarget.members.count);
[asProject save];
</code></pre>
<p>but it didnt work.i got the same count number printed twice.</p>
<p>anyone knows how to make it?
thanks!</p>