• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get access to specified frameworks in custom script phase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get access to specified frameworks in custom script phase


  • Subject: Re: Get access to specified frameworks in custom script phase
  • From: Jonas Maebe <email@hidden>
  • Date: Mon, 20 Jun 2005 17:23:48 +0200

(for the archives)


On 16 jun 2005, at 17:03, Jonas Maebe wrote:

Is there any way to get linked frameworks and libraries (put into the "External Frameworks and Libraries" group) to show up in some environment variable during a custom script phase in XCode 2.1? (or alternatively, to add them elsewhere so they are accessible in the custom script phase, preferably libraries and frameworks separately).

During my experimentations, I came up with the following (working) osascript:


LINKERPARAS=`osascript -e "tell application \"Xcode\"
set temp to \"\"
repeat with f in (build files of link binary with libraries phase of target \"$TARGETNAME\" of project \"$PROJECT\")
set n to name of f
if n ends with \".framework\" then
set temp to temp & \" -framework \" & (text 1 thru ((length of n) - 10) of n)
else if (n ends with \".dylib\") then
set temp to temp & \" -l\" & (text 4 thru ((length of n) - 6) of n)
else
set temp to temp & \" \" & n
end if
end repeat
set result to temp
end tell"`


In the end, I didn't need it though.


Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Get access to specified frameworks in custom script phase (From: Jonas Maebe <email@hidden>)

  • Prev by Date: compiling resources using xcode 1.5
  • Next by Date: Re: compiling resources using xcode 1.5
  • Previous by thread: Re: Get access to specified frameworks in custom script phase
  • Next by thread: Re: Xcode-users Digest, Vol 2, Issue 282
  • Index(es):
    • Date
    • Thread