Open antoniobrandao opened 9 years ago
I'm with you, antoni. Please Author! It's needed clarifications, I compiled and built all frameworks that included in project and tried to launch and nothing happened just Xcode produced error, that couldn't run what a shame:(
@antoniobrandao You'd want to build the xpf-bootstrap target, either from within Xcode or from the command line using xcodebuild
@kos9kus What error(s) where you hitting? What parts of the current instructions can I clarify?
@landonf this is terminal's log: kkusain:xpf-bootstrapTests.xctest kkusain$ env DYLD_INSERT_LIBRARIES=$ABSOLUTE_PATH_TO_FRAMEWORK/xpf-bootstrap.framework/xpf-bootstrap /Applications/Xcode.app/Contents/MacOS/Xcode dyld: could not load inserted library '/xpf-bootstrap.framework/xpf-bootstrap' because image not found
Trace/BPT trap: 5
kkusain:xpf-bootstrapTests.xctest kkusain$
Firstly, I should launch a "xpf-bootstrapTests" and then Xcode can be launched from the command-line ??
You need to set 'ABSOLUTE_PATH_TO_FRAMEWORK', or replace it with the path to the built framework; e.g.:
export ABSOLUTE_PATH_TO_FRAMEWORK=/some/path/to/your/build/files/build/Products/Debug/
Hello, Thanks for your effort on creating. This would be really useful. I was trying to get done but got an error while opening my project. Log below.
FYI: i am using Xcode 6.1 on Mac Os X 10.9.5
Duras-MacBook-Air:openmrs-contrib-ios-client-master_2 harshadura$ env DYLD_INSERT_LIBRARIES=$ABSOLUTE_PATH_TO_FRAMEWORK/xpf-bootstrap.framework/xpf-bootstrap /Applications/Xcode.app/Contents/MacOS/Xcode
2015-06-17 00:25:59.720 Xcode[15216:d07] [MT] DVTPlugInManager: Required plug-in compatibility UUID C4A681B0-4A26-480E-93EC-1218098B9AA0 for XcodePostFacto.ideplugin (org.landonf.XcodePostFacto) not present
2015-06-17 00:26:00.453 Xcode[15216:1003] DeveloperPortal: Using pre-existing current store at URL (file:///Users/harshadura/Library/Developer/Xcode/DeveloperPortal%206.1.db).
dyld: lazy symbol binding failed: Symbol not found: _dispatch_queue_attr_make_with_qos_class
Referenced from: /Applications/Xcode.app/Contents/MacOS/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _dispatch_queue_attr_make_with_qos_class
Referenced from: /Applications/Xcode.app/Contents/MacOS/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation
Expected in: /usr/lib/libSystem.B.dylib
Trace/BPT trap: 5
Duras-MacBook-Air:openmrs-contrib-ios-client-master_2 harshadura$
Before building, be sure to change what you're building to "xpf-bootstrap". This can be done through choosing Product - Scheme - xpf-bootstrap. Then hit build.
The "$ABSOLUTE_PATH_TO_FRAMEWORK" in "env DYLD_INSERT_LIBRARIES=$ABSOLUTE_PATH_TO_FRAMEWORK/xpf-bootstrap.framework/xpf-bootstrap /Applications/Xcode.app/Contents/MacOS/Xcode" refers to the actual path you've built the framework at.
Therefore, change "$ABSOLUTE_PATH_TO_FRAMEWORK" to the actual path you've built the framework at. Find this out by expanding "Products" folder in the sidebar, then right clicking "xpf-bootstrap.framework" and choose Show in Finder. Go find Versions/A/xpf-bootstrap.
Go to Terminal. Paste in "DYLD_INSERT_LIBRARIES=", then drag "xpf-bootstrap" into the terminal window.
Then find the binary of your Xcode 6.3.x file by right clicking on Xcode app, choosing Show Package Contents.
Go to /Contents/MacOS/Xcode. Then drag that into the terminal window as well. Then hit enter.
This should be clear enough...
I don't understand how to use this. You start by saying "After building the xpf-bootstrap.framework", but how does one build the "xpf-bootstrap.framework"?
Could you make the "How To" a little more simple? Doesn't have to be completely "for dummies" but a few more detail would surely help!
Thanks