landonf / XcodePostFacto

Xcode 6.3 for Mac OS X 10.9
Other
68 stars 9 forks source link

Make "How To" more clear #7

Open antoniobrandao opened 9 years ago

antoniobrandao commented 9 years ago

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

kos9kus commented 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:(

landonf commented 9 years ago

@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?

kos9kus commented 9 years ago

@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$ screen shot 2015-05-15 at 18 54 51

Firstly, I should launch a "xpf-bootstrapTests" and then Xcode can be launched from the command-line ??

landonf commented 9 years ago

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/
harshadura commented 9 years ago

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$ 
vista980622 commented 9 years ago

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.

screen shot 2015-08-18 at 3 40 30 pm

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.

screen shot 2015-08-18 at 3 42 37 pm

Go to Terminal. Paste in "DYLD_INSERT_LIBRARIES=", then drag "xpf-bootstrap" into the terminal window.

screen shot 2015-08-18 at 3 45 31 pm

Then find the binary of your Xcode 6.3.x file by right clicking on Xcode app, choosing Show Package Contents.

screen shot 2015-08-18 at 3 45 50 pm

Go to /Contents/MacOS/Xcode. Then drag that into the terminal window as well. Then hit enter.

This should be clear enough...