Re: Xcode-users Digest, Vol 9, Issue 573
Re: Xcode-users Digest, Vol 9, Issue 573
- Subject: Re: Xcode-users Digest, Vol 9, Issue 573
- From: Jose Maria Sanz Hurtado <email@hidden>
- Date: Fri, 30 Nov 2012 02:50:51 +0100
A
Enviado desde mi iPhone
El 29/11/2012, a las 21:00, email@hidden escribió:
> Send Xcode-users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/xcode-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Xcode-users digest..."
>
>
> Today's Topics:
>
> 1. The weakest link: A question on olders SDKs (Alexander von Below)
> 2. Re: The weakest link: A question on olders SDKs (David Duncan)
> 3. Re: The weakest link: A question on olders SDKs
> (Alexander von Below)
> 4. Re: including .h files in a project with two static library
> targets (Roland King)
> 5. Re: including .h files in a project with two static library
> targets (Matt Neuburg)
> 6. How can I export the ipa file by using Xcoder 4.5 (Hua)
> 7. Re: Any Way To Make XCode 4 search XIB files? (Praveen S)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 28 Nov 2012 21:55:20 +0100
> From: Alexander von Below <email@hidden>
> To: "email@hidden List" <email@hidden>
> Subject: The weakest link: A question on olders SDKs
> Message-ID: <email@hidden>
> Content-Type: text/plain; CHARSET=US-ASCII
>
> Hello List,
>
> I have a question on dyld and weak linking:
>
> I can build and run an app on iOS 4 which contains the symbol UIPageViewControllerOptionInterPageSpacingKey, which is actually available only on iOS 5 and up (I am not talking about using that symbol, just linking it)
>
> But if I use UIPageViewControllerOptionSpineLocationKey, another symbol for a UIPageViewController options key (but available in iOS 5 and up), I have to weak-link the UIKit Framework.
>
> Is this because UIPageViewControllerOptionInterPageSpacingKey was already present as private in iOS 4, or why is it weak linked, whereas UIPageViewControllerOptionSpineLocationKey is not?
>
> Any insight is appreciated!
>
> Thanks
>
> Alex
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 28 Nov 2012 13:05:51 -0800
> From: David Duncan <email@hidden>
> To: Alexander von Below <email@hidden>
> Cc: "email@hidden List" <email@hidden>
> Subject: Re: The weakest link: A question on olders SDKs
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On Nov 28, 2012, at 12:55 PM, Alexander von Below <email@hidden> wrote:
>
>> I have a question on dyld and weak linking:
>>
>> I can build and run an app on iOS 4 which contains the symbol UIPageViewControllerOptionInterPageSpacingKey, which is actually available only on iOS 5 and up (I am not talking about using that symbol, just linking it)
>>
>> But if I use UIPageViewControllerOptionSpineLocationKey, another symbol for a UIPageViewController options key (but available in iOS 5 and up), I have to weak-link the UIKit Framework.
>>
>> Is this because UIPageViewControllerOptionInterPageSpacingKey was already present as private in iOS 4, or why is it weak linked, whereas UIPageViewControllerOptionSpineLocationKey is not?
>
>
> If you have configured your application properly you should not need to weak link UIKit (if you do for some reason, then it is because a header is incorrectly defined to not have the symbol set to weak link given a correct configuration).
>
> Generally a "correct configuration" means that you've set your deployment target to the oldest iOS version you wish to support. In the header case you can check to ensure that the symbol has the appropriate macro tied to it, typically an NS_AVAILABLE* macro.
>
> *Note I just looked in the relevant UIKit header, and it appears that UIPageViewControllerOptionSpineLocationKey does /not/ in fact have the appropriate availability macro, which is causing your weak linking headaches. I think you can work around this by redeclaring the identifier with the appropriate macro (its available on iOS 5 or later).
> --
> David Duncan
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 28 Nov 2012 22:14:37 +0100
> From: Alexander von Below <email@hidden>
> To: David Duncan <email@hidden>
> Cc: "email@hidden List" <email@hidden>
> Subject: Re: The weakest link: A question on olders SDKs
> Message-ID: <email@hidden>
> Content-Type: text/plain; CHARSET=US-ASCII
>
> Thank you for your reply!
>
> Am 28.11.2012 um 22:05 schrieb David Duncan <email@hidden>:
>
>> *Note I just looked in the relevant UIKit header, and it appears that UIPageViewControllerOptionSpineLocationKey does /not/ in fact have the appropriate availability macro, which is causing your weak linking headaches. I think you can work around this by redeclaring the identifier with the appropriate macro (its available on iOS 5 or later).
>
> I will definitely try that, you can watch my results on https://github.com/below/iOS4Test
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 29 Nov 2012 06:41:58 +0800
> From: Roland King <email@hidden>
> To: Matt Neuburg <email@hidden>
> Cc: "email@hidden" <email@hidden>
> Subject: Re: including .h files in a project with two static library
> targets
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
>
> On 29 Nov, 2012, at 12:13 AM, Matt Neuburg <email@hidden> wrote:
>
>> On Fri, 16 Nov 2012 23:00:44 +0800, Roland King <email@hidden> said:
>>> I had the original mail the wrong way around, I can build an OS X static library, when I add the same files to an iOS one I cannot select the headers as members of the build product. I've deleted all the build products, rebooted, tried two different Xcode versions, different project names. If I add the .h files on an OSX project they can be selected, if I add the exact same files on iOS, asking for them to be copied .. they cannot be selected as part of the target.
>>
>> But surely you shouldn't need to make *any* header files part of the target. They don't need to be copied to the built app; they just need to be seen during compilation, and that has nothing to do with target membership - it has to do with where you've told a target to look for header files. m.
>
> Yes you do, if you make proper standalone static libraries at least, libraries you could ship. You want the public headers in the build product, public only, and you want to point at that in your app compilation. Mine are in /usr/local/include/something. That's how Xcode sets up the app compile, basically, it uses the built product of the static library as if it were installed.
>
> Anyway the issue was the iOS target template had a copy files final stage instead of an install headers final stage like the OS X one has and like the ios one used to have. Adding the correct final step reenabled the public/private/package selection and it all works fine again. Whether that's a bug or done on purpose I have no idea, but there is a longstanding bug with header copies in archived builds which keeps tripping people up, so instead of fixing it they may have changed the template, which would be a bit naughty.
>
> I'll file and see what comes back.
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 28 Nov 2012 15:15:36 -0800
> From: Matt Neuburg <email@hidden>
> To: Roland King <email@hidden>
> Cc: "email@hidden" <email@hidden>
> Subject: Re: including .h files in a project with two static library
> targets
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> Thanks for reporting back. I was actually just trying to goad you into telling us how you solved it. :) m.
>
> On Nov 28, 2012, at 2:41 PM, Roland King <email@hidden> wrote:
>
>>
>>
>> On 29 Nov, 2012, at 12:13 AM, Matt Neuburg <email@hidden> wrote:
>>
>>> On Fri, 16 Nov 2012 23:00:44 +0800, Roland King <email@hidden> said:
>>>> I had the original mail the wrong way around, I can build an OS X static library, when I add the same files to an iOS one I cannot select the headers as members of the build product. I've deleted all the build products, rebooted, tried two different Xcode versions, different project names. If I add the .h files on an OSX project they can be selected, if I add the exact same files on iOS, asking for them to be copied .. they cannot be selected as part of the target.
>>>
>>> But surely you shouldn't need to make *any* header files part of the target. They don't need to be copied to the built app; they just need to be seen during compilation, and that has nothing to do with target membership - it has to do with where you've told a target to look for header files. m.
>>
>> Yes you do, if you make proper standalone static libraries at least, libraries you could ship. You want the public headers in the build product, public only, and you want to point at that in your app compilation. Mine are in /usr/local/include/something. That's how Xcode sets up the app compile, basically, it uses the built product of the static library as if it were installed.
>>
>> Anyway the issue was the iOS target template had a copy files final stage instead of an install headers final stage like the OS X one has and like the ios one used to have. Adding the correct final step reenabled the public/private/package selection and it all works fine again. Whether that's a bug or done on purpose I have no idea, but there is a longstanding bug with header copies in archived builds which keeps tripping people up, so instead of fixing it they may have changed the template, which would be a bit naughty.
>>
>> I'll file and see what comes back.
>
> --
> matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
> pantes anthropoi tou eidenai oregontai phusei
> Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
> TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 29 Nov 2012 20:01:51 +0800
> From: Hua <email@hidden>
> To: email@hidden
> Subject: How can I export the ipa file by using Xcoder 4.5
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Hi, all
>
> It's difficult to submit the app to AppStore by using Xcode(because of the internet), so i have to upload the ipa file to AppStore by using Application Loader, but I don't know how to export the ipa file by using Xcoder 4.5, it only can export the Ad-Hoc ipa file, so can the Ad-Hoc ipa file submit to AppStore? And how can i export the Distribution ipa file? thanks a lot.
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.apple.com/archives/xcode-users/attachments/20121129/20d631e1/attachment.html>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 29 Nov 2012 18:18:04 +0530
> From: Praveen S <email@hidden>
> To: Keary Suska <email@hidden>
> Cc: Apple xCode users <email@hidden>
> Subject: Re: Any Way To Make XCode 4 search XIB files?
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
> On Nov 21, 2012, at 12:27 AM, Keary Suska wrote:
>
>> On Nov 20, 2012, at 1:55 AM, Praveen S wrote:
>>
>>> What about ack (better than grep) or grep command :)
>>> On Jun 21, 2011, at 9:19 AM, Nikolaus Heger wrote:
>>>
>>>> I've run into this a few times: Global search (Shift-F) doesn't look in XIB files.
>>>>
>>>> Which is not so good when I am searching for resources, or class names.
>>>>
>>>> Is there any way to make it? I know there's a bunch of search options but they all seem to automatically exclude XIB files.. the only way I have found to make it work is by searching the root directory, but that also finds all sorts of svn files.
>>
>> The short answer is no, but there are options. As for 3rd party solutions, I will throw in BBEdit as a powerful option. In Xcode alone, I sometimes use the refactor->rename process to see how a known class is being used across a project.
>
> BBEdit? Is it free? To just accomplish a small work why do we need 3rd party solutions. I just wrote a small script using ack which just find and replace the text in matching files ( including xib files).
>
>>
>> HTH,
>>
>> Keary Suska
>> Esoteritech, Inc.
>>
>>
>>
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Xcode-users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/xcode-users
>
> End of Xcode-users Digest, Vol 9, Issue 573
> *******************************************
_______________________________________________
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