Re: Where does printf go?

2014-10-28 Thread Jens Alfke
On Oct 28, 2014, at 3:13 AM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: If Xcode is running, printf goes to the Xcode console. If my program is launched from the OS X console, printf will go there. My memory is that if neither of these conditions are met then the output will

Re: Why is examining changes during Merge so hard?

2014-11-11 Thread Jens Alfke
On Nov 11, 2014, at 6:22 AM, Jerry Krinock je...@ieee.org wrote: Thank you, Scott. I try and avoid jumping into new tools and techniques because, you know, just around the time I invest myself past the knee of the learning curve, the community of young developer kids and/or Apple decide

Re: Unit testing via SSH in Xcode 6

2015-01-15 Thread Jens Alfke
I'm having trouble running my unit tests over SSH after upgrading from Xcode 4 to Xcode 6. ... Test target MyCocoaApplicationTests encountered an error (Test session exited(-1) without checking in. If you believe this error represents a bug, please attach the log file at

Re: Unit testing via SSH in Xcode 6

2015-01-15 Thread Jens Alfke
On Jan 15, 2015, at 12:44 PM, Andrew Keller and...@kellerfarm.com wrote: Our current build system performs many steps, one of which is kicking off an xcodebuild invocation. Additional steps are performed with the results. (In other words, we don't just have an Xcode project with which

Re: XCode 6 Link Errors

2015-02-17 Thread Jens Alfke
On Feb 17, 2015, at 1:48 PM, Alex Zavatone z...@mac.com wrote: FWIW, I've resorted to pressing command 4 for the Issue Navigator, then clicked the little circle with the ! mark in it on the lower left of the window to only show the critical error without all the other non critical

Clang __has_feature check for new 'nullable' language extensions?

2015-02-11 Thread Jens Alfke
I’m starting to add the new Objective-C nullability indicators (nullable, nonnull, #pragma clang assume_nonnull, etc.) to my framework's headers. But how can I do so in a backward-compatible way, so that clients building with earlier versions of Xcode can use the headers without errors? I’m

Re: Documentation

2015-02-11 Thread Jens Alfke
On Feb 11, 2015, at 10:41 PM, Bernie Maier apple-xc...@worklists.blurk.net wrote: I wonder if that's been fixed? (Answer: yes it has. Time to give Dash another go.) Yeah, Dash’s UI was very … quirky in its initial release. It’s been polished a lot since then. Actually I don’t use Dash

Re: XCode 6 Link Errors

2015-02-17 Thread Jens Alfke
On Feb 17, 2015, at 9:07 AM, Dave d...@looktowindward.com wrote: Why is it that Link Error produce a gibberish error message? It’s been like this in XCode since as long as I can remember and I’ve often wondered why they just don’t produce a decent meaningful error message. It varies.

Re: How to get Xcode CI bot to update git submodules?

2015-01-10 Thread Jens Alfke
On Jan 9, 2015, at 11:27 PM, Dave Camp d...@thinbits.com wrote: I saw someone on my team fix this very issue today on our Xcode server, but I wasn’t paying terribly close attention to exactly what buttons were clicked. Somewhere in the bot configuration there is a place to enter a script

Re: TestFlight user access

2015-02-13 Thread Jens Alfke
On Feb 13, 2015, at 12:51 AM, Roland King r...@rols.org wrote: You could always join the growing band of rebels over on HockeyApp, yeah I know it owned by the evil empire but it's as close as I've found to what Testflight used to be. Apparently Crashlytics now has a comparable system

Re: Xcode 6.1.1 Modernization fails on selectors returning blocks

2015-02-14 Thread Jens Alfke
On Feb 13, 2015, at 3:32 PM, Jean Suisse jean.li...@gmail.com wrote: 1. Is it a bug? Any time refactoring/modernizing creates a syntax error, that’s definitely a bug. Please report it! —Jens ___ Do not post admin requests to the list. They will

Re: Clang __has_feature check for new 'nullable' language extensions?

2015-02-12 Thread Jens Alfke
On Feb 11, 2015, at 11:55 PM, Roland King r...@rols.org wrote: I’m guessing it’s __has_feature( nullability ) That works — thanks! So the magic invocation I’m putting in my header files (after the #includes) is: #if __has_feature(nullability) // Xcode 6.3+ #pragma clang assume_nonnull

Re: 64-bit int not being aligned in 32-bit ARM, causing crash

2015-03-12 Thread Jens Alfke
On Mar 11, 2015, at 3:26 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: The compiler will, under normal circumstances, never by itself emit an atomic 64 bit load. My guess is that Jens is passing the address of that field to a function that is hardcoded (possibly using inline assembly)

64-bit int not being aligned in 32-bit ARM, causing crash

2015-03-05 Thread Jens Alfke
I’m trying to figure out a crash that only happens in a 32-bit ARM build of my code (well, in a C library my code uses.) The crash is an unaligned memory access: EXC_BAD_ACCESS (code=EXC_ARM_DA_ALIGN, address=0x18083b34) during a 64-bit load from a non-8-byte-aligned address. The

Xcode is using a -Xlinker flag that libtool doesn't understand

2015-03-29 Thread Jens Alfke
I have a target that contains Objective-C source files and builds a static library for iOS. It works fine. I just tried adding a single Swift file to it, and now it fails to build, with a strange link-time error: libtool: unknown option character `X' in: -Xlinker which sounds like Xcode

Re: Xcode is using a -Xlinker flag that libtool doesn't understand

2015-03-29 Thread Jens Alfke
Oops, I should have googled first. I found a discussion of this error from last June (right after the first Swift release): https://github.com/CocoaPods/CocoaPods/issues/2226 https://github.com/CocoaPods/CocoaPods/issues/2226 wherein someone quoted from the Xcode 6.0b2 release notes:

Re: PATH for applications run inside XCode

2015-04-24 Thread Jens Alfke
On Apr 24, 2015, at 12:16 PM, Roland Bosa rb...@logitech.com wrote: Launch Xcode from the command line (which has the proper environment): $ cd folder_of_funky_project $ open FunkyProject.xcodeproj That won’t work because the ‘open’ tool doesn’t directly launch Xcode; instead it calls

Can't figure out how to use Connections instrument

2015-04-27 Thread Jens Alfke
Am I the only person who can’t figure out Instruments? I’ve learned how to use the Time Profiler instrument pretty well, and it’s useful, but I’m profiling some complex activity that includes TCP I/O, parsing and database queries and I need insight into more than just CPU cycles. Here’s my

Re: Programmatically marking events in iOS for Instruments?

2015-04-29 Thread Jens Alfke
On Apr 29, 2015, at 2:12 PM, Rick Mann rm...@latencyzero.com wrote: Is there any other way to mark events in iOS code to help when using Instruments? +1. I was just about to ask about this myself. If calling into DTPerformanceSession won’t work, maybe one could try the opposite approach

Re: Can't figure out how to use Connections instrument

2015-04-27 Thread Jens Alfke
On Apr 27, 2015, at 9:23 PM, Joar Wingfors j...@joar.com wrote: Sounds like a bug report might be in order. This seems so obviously broken that I’m reluctant to think it’s a mere bug; given how obtuse a lot of Instruments’ UI is, it seemed more likely that I was just not understanding how

Re: Can't figure out how to use Connections instrument

2015-04-28 Thread Jens Alfke
On Apr 27, 2015, at 10:59 PM, Joar Wingfors j...@joar.com wrote: Even if it’s a case of “you’re holding it wrong”, a bug report is still the correct course of action if you cannot figure it out. Discoverability issues are also issues. Point taken, and I’ve just filed two Radars covering

How to distribute use a dynamic framework for iOS?

2015-05-11 Thread Jens Alfke
Question: How does one use a pre-built 3rd party dynamic iOS framework in an app target? I develop a framework for iOS (Couchbase Lite). It’s open source but we prefer to distribute it in binary form, for several reasons (so we can QA the exact bits that a customer gets, so we don’t have

Re: How to distribute use a dynamic framework for iOS?

2015-05-14 Thread Jens Alfke
On May 14, 2015, at 12:05 PM, Chris Hanson c...@mac.com wrote: This is not supported; the Mach-O format doesn't have a way to distinguish between targeted platforms, so you can't mix platforms in a single file. And iOS Simulator is a separate platform from iOS (and OS X). I understand

What's actually new in Xcode 6.4 beta?

2015-04-14 Thread Jens Alfke
As far as I can tell from reading the extra-terse release notes, the _only_ change in iOS 6.4 beta is the new Music app*. And the _only_ change in Xcode 6.4 beta is support for iOS 6.4. So is there any value at all to downloading running Xcode 6.4 if I'm not also running iOS 6.4? Any bug fixes

Re: XCode 6.3 Swirling TechniColor Pizza of Death

2015-04-12 Thread Jens Alfke
On Apr 12, 2015, at 9:28 AM, Dave d...@looktowindward.com wrote: I’ve now got a project that eveytime I open it it hangs XCode. I’ve forced quit XCode and tried to re-open but it hangs each time I try it? I haven’t had this problem, but I’ve definitely had trouble with projects that crash

Re: 34 build errors magically just appeared and then Xcode 6.2 crashed.

2015-05-19 Thread Jens Alfke
On May 19, 2015, at 11:12 AM, Marco S Hyman m...@snafu.org wrote: Try Cmd-Shift-OPT-K What Marco said :) The difference seems to be that the regular Clean just deletes the Build/Products directories, while adding the Option key produces the New Improved Ultra-Sanitizing Enzyme-Powered

Can't import my framework into Swift code

2015-05-20 Thread Jens Alfke
I’m building a Mac demo app with Swift. I’ve added my framework to the project and the target. But when I try to use “import MyFramework” in Swift code, the compiler complains “No such module ‘MyFramework’”. Defines Module is enabled in the framework’s build settings, and the Product Module

Re: Can't import my framework into Swift code

2015-05-20 Thread Jens Alfke
I did some experimenting and found that this issue occurs with our official build of the framework, but not a build that I make on my desktop. The difference is that our build server is still using Xcode 5.1, whereas I’m on 6.3.2. So, does Xcode 5.1 not support modules? I thought module

Re: Refactoring a #define definition

2015-06-09 Thread Jens Alfke
On Jun 9, 2015, at 8:01 AM, Alex Zavatone z...@mac.com wrote: Wording is everything. Make a different selection that Refactor can handle and try again. That might work a little bit better. “Answer unclear; ask again later.” —Jens ___ Do not

Is the f***ing NDA back, or why is no one talking about new stuff?

2015-06-09 Thread Jens Alfke
With all the new goodies announced yesterday, and new releases of Xcode and multiple OSs, I’m surprised I haven’t seen discussion of them here or on cocoa-dev. Which makes me wonder whether the newly-updated Apple developer agreement (that I clicked through without reading) reinstates the

Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”

2015-06-09 Thread Jens Alfke
On Jun 9, 2015, at 2:25 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: I think the issue is that declaring your initializer “designated” causes the compiler to enforce different inheritance semantics Yes, and that’s the intent (and the purpose of that macro.) My question

Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”

2015-06-10 Thread Jens Alfke
On Jun 9, 2015, at 4:18 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: I was half-right before, in that using ’NS_DESIGNATED_INITIALIZER’ enables different rules for initializers in the compiler. Once you use that on an initializer that has parameters, you must override

Re: How to View Hex in Debugger

2015-06-25 Thread Jens Alfke
On Jun 25, 2015, at 12:35 PM, Tony Scaminaci friskythe...@sbcglobal.net wrote: I hate bashing Xcode since I use it on a daily basis but there are other weird things happening such as Xcode throwing errors when compiling a command-line app that builds and executes fine using gcc, g++,

Re: Version editor ignore whitespace?

2015-06-20 Thread Jens Alfke
On Jun 20, 2015, at 10:56 AM, Marco S Hyman m...@snafu.org wrote: There used to be an Xcode preference to ignore white space when using the version editor. Did that preference go away? Is there any way to tell Xcode that I don’t want every space highlighted because I replaced an if let...

Re: Pet Hate......

2015-06-18 Thread Jens Alfke
On Jun 18, 2015, at 11:36 AM, Dave d...@looktowindward.com wrote: Obviously the git Client would have to be smart enough to display it correctly, but as there would be no formatting information in the file, it would compare the raw data and then display it using the same rules. It would

Re: Removing old iOS SDKs?

2015-06-18 Thread Jens Alfke
On Jun 18, 2015, at 3:53 PM, Rick Mann rm...@latencyzero.com wrote: I used DaisyDisk to find a bunch of SDKs and other stuff. Basically, if it wasn't in /Applications/Xcode.app, I deleted it, unless it was the latest of 8.x and 9.x and OS X 10.10.x. I also deleted similarly old-looking

Re: Pet Hate......

2015-06-18 Thread Jens Alfke
On Jun 18, 2015, at 4:01 PM, Rick Mann rm...@latencyzero.com wrote: I do wish Xcode would support reformatting comment blocks natively. Filing a bug report, you should, too… You could create a Behavior that runs a shellscript to do this, and then bind it to a keystroke. —Jens

Re: New error “Method override for the designated initializer of the superclass ‘-init’ not found”

2015-06-10 Thread Jens Alfke
On Jun 10, 2015, at 12:16 AM, Kyle Sluder k...@ksluder.com wrote: You should be able to use the NS_UNAVAILABLE macro in your @interface to delete -init from your subclass, and thus suppress the warning. Perfect! I was unaware of this attribute and it’s exactly what I needed. Thanks.

Re: CFBridgingRetain and Xcode 7's -Wcast-qual

2015-06-12 Thread Jens Alfke
On Jun 12, 2015, at 12:30 PM, Sean McBride s...@rogue-research.com wrote: But now it warns: Cast from 'const void *' to 'void *' drops const qualifier because IOServiceAddMatchingNotification wants a void* but CFBridgingRetain returns a const void*. Any clever solutions here?

LLDB warning: got name from symbols: _XCDidPauseInDebugger on every breakpoint

2015-06-15 Thread Jens Alfke
I’m using the Xcode 7 beta and have started getting these warning messages in the debugger console every time it stops at any breakpoint (or at a crash) in any project: error: warning: got name from symbols: _XCDidPauseInDebugger error: assigning to 'void *' from incompatible type 'BOOL' (aka

Re: How do I set a watchpoint?

2015-05-28 Thread Jens Alfke
On May 28, 2015, at 4:24 PM, Kate Stone katherine_st...@apple.com wrote: Register values can be readily used in C-based languages as if they were pointers, but they have far less obvious meaning in a Swift context where everything is more strongly typed and is safe by design. I think

How do I set a watchpoint?

2015-05-23 Thread Jens Alfke
I’m going nuts trying to debug a crash in which an object gets dealloced prematurely (but enabling zombies doesn’t help, i.e. the object is freed regardless, not turned into a zombie.) I’m trying to set a watchpoint on the object’s memory to see what’s freeing it, but I can’t figure out how to

Re: XCTest KVO exception: Cannot remove an observer _XCKVOExpectation ...

2015-08-17 Thread Jens Alfke
FYI: One of my co-workers discovered that this is a bug in XCTest, reported as rdar://21459715 (http://openradar.appspot.com/21459715), and has been fixed in Xcode 7 beta 5. This explains why it never reproduces for me — I’m using the latest Xcode 7, while our bot is still on the ‘stable' Xcode

LLDB error class ... has incompatible superclasses

2015-07-29 Thread Jens Alfke
There’s a weird regression in Xcode 7. When execution is paused inside an Obj-C method whose class inherits from a specific abstract class in my library (CBLModel), any attempt to evaluate an expression involving that object fails with this error: (lldb) po self error: class 'CBLModel' has

Re: printf('\r') supported in Xcode 6.4 console window?

2015-08-07 Thread Jens Alfke
On Aug 7, 2015, at 3:33 PM, Carl Hoefs newsli...@autonomy.caltech.edu wrote: I'm probably stuck in the operates as designed syndrome, but I'd thought I'd ask if what I'm trying to do is possible. Nope. The Xcode console is not a terminal. It only appends output, never modifies it in place

__attribute((noescape)) doesn't prevent retain-cycle errors

2015-08-04 Thread Jens Alfke
Is __attribute((noescape)) — the Objective-C equivalent of Swift’s @noescape attribute — fully implemented yet (as of Xcode 7)? I’m trying to use it to avoid that pesky “capturing 'self' strongly in this block is likely to lead to a retain cycle” error. I’ve got a method declared like so, with

Re: iOS simulator completely broken (El Capitan, Xcode 7)

2015-08-13 Thread Jens Alfke
Well, it’s not entirely fixed. I only have the iOS 9 simulators, and I can’t download the iOS 8 ones because the “Components” list in the Downloads pref is completely empty. (Checking for updates doesn’t help.) Guess it’s time to file a Radar. —Jens

iOS simulator completely broken (El Capitan, Xcode 7)

2015-08-12 Thread Jens Alfke
Yikes — After upgrading my OS from 10.10 to the latest 10.11 beta (6), everything associated with the iPhone simulator seems completely broken: * Xcode (7.0 beta 5) doesn’t list any simulators in the scheme popup, just “iOS Device” * The Devices window shows nothing but “My Mac” * The Downloads

Re: App verification takes a stupidly long time

2015-07-21 Thread Jens Alfke
On Jul 20, 2015, at 11:48 PM, Rick Mann rm...@latencyzero.com wrote: It takes several minutes for OS X to verify Xcode on a 2.8 GHz MacBook Pro. The progress bar fills in under a minute, but then it sits there, fans screaming, for another while. Not surprising, since it’s reading from

Re: Xcode crashes opening project

2015-07-21 Thread Jens Alfke
On Jul 20, 2015, at 11:31 PM, Rick Mann rm...@latencyzero.com wrote: Great. I tried to edit something in a storyboard. Xcode crashed (7b2). Now every time I open the project, Xcode crashes There are some known bugs in the Xcode 7 betas (called out in the release notes) that can cause

Re: Missing Files - what gives?

2015-07-21 Thread Jens Alfke
On Jul 21, 2015, at 11:34 AM, Dave d...@looktowindward.com wrote: I’ve worked at many different places over the last 5 or 6 years and believe it or not, not one of them have used submodules although they used git for source control. They use Cocoa Pods instead. I’m not a fan of

Re: Some Xcode pet peeves

2015-07-14 Thread Jens Alfke
On Jul 14, 2015, at 11:56 AM, Scott Ribe scott_r...@elevated-dev.com wrote: There's a popup menu up there from which you can select counterparts. As long as you select files by clicking them in the files tree on the left, it will automatically open the counterpart in the assistant editor.

Re: Some Xcode pet peeves

2015-07-14 Thread Jens Alfke
On Jul 14, 2015, at 12:15 PM, Doug Hill xcodeus...@breaqz.com wrote: • Command-click on a symbol in the .h (for example NSObject to show it’s interface) • Click on Show the Standard Editor to dismiss the Assistant editor. If you use the Back command in between those steps, it restores the

Re: Manual for Defaults command

2015-07-20 Thread Jens Alfke
On Jul 20, 2015, at 1:45 PM, John Richardson richa...@spawar.navy.mil wrote: Is there a manual on the developer website that gives all the options for the defaults command? Example: defaults write com.apple.doc ?? where the question marks are the options and their values/parameters.

Re: Xcode 7.1b3 isn't checking return types

2015-10-23 Thread Jens Alfke
> On Oct 22, 2015, at 7:38 PM, Clark S. Cox III wrote: > > Add -Woverriding-method-mismatch: But why is that (a) a warning not an error, (b) not enabled by default in Xcode targets, and (c) not even deserving of a checkbox in the build settings? Also, the name seems

Re: Xcode 7.1b3 isn't checking return types

2015-10-21 Thread Jens Alfke
> On Oct 20, 2015, at 6:31 PM, Rick Mann wrote: > > Ugh. Precisely the type of regression that should've been caught by an > automated test. Assuming it's not something in your project, that is ;-) I know! I added a note to that effect in the bug report, trying not to

Re: linker error nonsense?

2015-10-27 Thread Jens Alfke
> On Oct 27, 2015, at 12:01 PM, Patrick J. Collins > wrote: > > When I look at my build phases, neither of those have any compiler flags. > How can I tell it to stop thinking utils.m is c++? Select the .m file(s) in the file navigator Show the file inspector

Re: linker error nonsense?

2015-10-27 Thread Jens Alfke
You inadvertently changed RangeEditor.m from Objective-C++ to Objective-C when you removed and re-added it: - CDE3EE891804C87A00201967 /* RangeEditor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RangeEditor.m; sourceTree =

Re: Xcode 7 command line tools

2015-10-27 Thread Jens Alfke
> On Oct 27, 2015, at 1:58 PM, Erik Colson wrote: > > Carl Hoefs writes: > >> I'm currently downloading Xcode 7.1 directly from >> https://developer.apple.com/downloads (all 4.2GB!). Does this come bundled >> with (and install) the command

Re: linker error nonsense?

2015-10-27 Thread Jens Alfke
> On Oct 27, 2015, at 7:19 PM, Patrick J. Collins > wrote: > > Should I just convert all my .m's to .mm? I’d just back out the surgery you did on the pbxproj, which should fix every source file but one; and then change the Type pop-up for that one file that you

Re: linker error nonsense?

2015-10-27 Thread Jens Alfke
> On Oct 27, 2015, at 6:43 PM, Roland King wrote: > > Numbers: > > you can't Well, realistically you use the +initialize method; something like: @implementation … static Foo* MyConstantFoo; + (void) initialize { if (!MyConstantFoo)

Re: Xcode 7 command line tools

2015-10-28 Thread Jens Alfke
> On Oct 28, 2015, at 11:45 AM, Marco S Hyman wrote: > > On Oct 28, 2015, at 1:28 AM, Erik Colson wrote: >> >> >> i.e. I needed to launch the command to get zlib.h installed in >> /usr/include. > > zlib.h is under

Re: More XCode 7.1 Badness

2015-11-10 Thread Jens Alfke
> On Nov 10, 2015, at 3:37 AM, Dave wrote: > > Anyone else having this problem? Please just file bug reports with Apple. Unless you need help with a workaround, there’s not really much point in telling us about the problem. —Jens

Re: Sourcekit crashes in Xcode 7.1

2015-11-11 Thread Jens Alfke
> On Nov 11, 2015, at 9:45 AM, Alex Zavatone wrote: > > The Assistant Editor is not showing my Objective-C code, but it's trying to > convert everything in my main editor to Swift. > What is this? How does this happen? Why does Xcode think I'm trying to > convert my app to

Re: Regular git vs. "Apple Git" - How and Why?

2015-11-13 Thread Jens Alfke
> On Nov 13, 2015, at 10:08 AM, Jerry Krinock wrote: > > I suspect this is the trouble. Bloggers explain how to replace the Apple > Git, implying that it is bad, but don’t explain this assumption. I’ve never heard of that. AFAIK Apple ships a regular version of Git, they just

Re: How to display Unicode math symbol operator characters large enough to comprehend?

2015-11-10 Thread Jens Alfke
> On Nov 10, 2015, at 6:01 PM, David Hoerl wrote: > > I can see the characters, but they are so small as to be unintelligible. The > issue is that I cannot really make them out in the editor. Then use a larger text size? Choosing a different font probably won’t make a

Re: advanced debugging?

2015-10-14 Thread Jens Alfke
> On Oct 14, 2015, at 5:59 AM, Alex Hall wrote: > > Cinnamon(1775,0x10086b000) malloc: *** mach_vm_map(size=72018011619328) > failed (error code=3) > *** error: can't allocate region > *** set a breakpoint in malloc_error_break to debug FYI, the error here is that

Re: advanced debugging?

2015-10-15 Thread Jens Alfke
> On Oct 15, 2015, at 3:16 AM, Alex Hall wrote: > > I don't know how much sense this will make, since VO groups things together, > probably differently from what you see visually, but I'll give it a shot. In the debugger console, enter the command “bt”. This will dump a

Re: advanced debugging?

2015-10-15 Thread Jens Alfke
> On Oct 15, 2015, at 5:03 PM, Alex Hall wrote: > > I'm sorry to be asking such basic questions, but what do you mean by the > debug console? The place where errors and print/log statements appear doesn't > take input Yes, it does. When the app is paused, an “(lldb)”

Xcode 7.1b3 isn't checking return types

2015-10-20 Thread Jens Alfke
Watch out: the compiler in Xcode 7.1b3 is not detecting mismatched Obj-C return types, at least for methods that return objects. For example, the following compiles with no warnings, even with all typical warning flags enabled: @interface Foo : NSObject - (NSString*) name; @end @implementation

Re: advanced debugging?

2015-10-14 Thread Jens Alfke
> On Oct 14, 2015, at 7:08 PM, Alex Hall wrote: > > Unfortunately this didn't reveal much of anything that I can tell. It goes > straight from > 5 Array.append(A) -> (), > to > 0 swift_slowAlloc, > and that's it. Well, there's more before that, but nothing after. I

Re: Ad Hoc iOS App on 7.0.1 without internet access

2015-10-12 Thread Jens Alfke
> On Oct 12, 2015, at 10:33 AM, Applelists wrote: > > Just imagine I’d be in the middle of yellow mainland or whereever peeky nses > sniff internet traffic. And some great Apple feature forces me to send very > sensitive data over internet just to export an ad hoc (for

Re: Warning, warning.

2015-10-06 Thread Jens Alfke
> On Oct 6, 2015, at 10:55 AM, Alex Zavatone wrote: > > As of updating to Xcode 7.0.1, I noticed that our iOS app gained a large > amount of warnings. Relative to which version? 6.4 or 7.0? > Can anyone point me to a source that documents the new warnings that can be >

Re: Warning, warning.

2015-10-06 Thread Jens Alfke
> On Oct 6, 2015, at 11:47 AM, Alex Zavatone wrote: > > Thanks. We have a few PJSIP libs that use the files that have config files > with the same file name, yet different paths and Xcode thinks that there are > "multiple build commands for the output file" within the derived

Re: Xcode 7.0.1 refactoring and committing screens.

2015-10-13 Thread Jens Alfke
> On Oct 13, 2015, at 10:08 AM, Alex Zavatone wrote: > > I seem to remember somewhere when you're committing or refactoring, that > Xcode's commit or refactor window used to show you the # of elements being > acted on in the lower left of the screen. It’s at the bottom of the

Re: unsafe printing

2015-07-11 Thread Jens Alfke
—Jens On Jul 11, 2015, at 3:45 AM, Jan E. Schotsman jesc...@xs4all.nl wrote: On Jul 10, 2015, at 10:07 PM, Steve Mills wrote: Better yet, don't do that, *because it's potentially insecure*. It isn't because I make the string myself. If it's possible for the string you create to

Re: unsafe printing

2015-07-10 Thread Jens Alfke
On Jul 10, 2015, at 1:07 PM, Steve Mills sjmi...@mac.com wrote: Temporarily turn off the warning: Yikes, don’t do that!! It’s like throwing away your smoke detector because the low-battery beeping bothers you, instead of replacing the battery. TL;DR: The format string parameter to printf

Re: Auto Layout Problems

2015-08-27 Thread Jens Alfke
On Aug 27, 2015, at 9:46 AM, Thomas Wetmore t...@verizon.net wrote: I have also been disappointed on how much difficulty I have had when incorporating new Apple technologies. In the case of Swift, I think it’s mostly just that it’s new (and still developing fast) and quite different from

Re: Xcode 7.0b6: "unable to open object file" warnings when generating dSYM

2015-09-09 Thread Jens Alfke
> On Sep 9, 2015, at 4:07 PM, Steve Christensen wrote: > > warning: (i386) .../libFoo.a(someObjectFile.o) unable to open object > file: No such file or directory Have you tried cleaning the build folder? (Cmd-Shift-Opt-K, or hold down Option and choose Product>Clean)

Re: ENABLE_BITCODE=NO and assistive applications

2015-09-16 Thread Jens Alfke
> On Sep 16, 2015, at 4:24 AM, Bill Cheeseman wrote: > > So, Chris, I'm very surprised at your assertion. Like many OS X developers, I > don't have time to watch all of the WWDC videos. But I do spend substantial > time every day reading the Apple tech news, and I like

Re: Strange XCode Warning

2015-09-15 Thread Jens Alfke
> On Sep 15, 2015, at 10:52 AM, Kyle Sluder wrote: > > Class really is a Class (instance of metaclass). That seems to be true, based on a bit of testing I just did. But I don’t think a type like that makes sense, since it says that the metaclass implements the protocol,

Re: Strange XCode Warning

2015-09-15 Thread Jens Alfke
> On Sep 15, 2015, at 8:36 AM, Dave wrote: > > Class That declaration doesn’t make sense, because the class Class (i.e. a metaclass) can’t conform to a protocol. I think that’s the source of the strange warning; the compiler is sort of confused about whether that

Re: Strange XCode Warning

2015-09-15 Thread Jens Alfke
> On Sep 15, 2015, at 9:19 AM, Dave wrote: > > Class was allowable and would cause the compiler to generate a > warning if “MyClass” does not conform to “ProtocolX”, e.g. I’ve never seen that used before … which doesn’t prove it isn’t real, but I’m suspicious. Have

Re: Xcode 7.0b6: "unable to open object file" warnings when generating dSYM

2015-09-09 Thread Jens Alfke
> On Sep 9, 2015, at 6:03 PM, Doug Hill wrote: > > One more suggestion to further clean build state is to delete items in the > Derived Data folder. Clean Build Folder (Cmd-Shift-Opt-K) will nuke that for you. It pretty much nukes everything. Except source code,

Re: [OT] Best Mac for Development?

2015-09-10 Thread Jens Alfke
> On Sep 10, 2015, at 1:07 PM, Rick Mann wrote: > > Not that it'll happen, but developers should choose a terrible machine for > development. That way, you make sure your app works on the lowest end of the > device spectrum, not only the highest. Naw. Apple management

Re: System Integrity Protection - can't debug pref pane

2015-09-30 Thread Jens Alfke
> On Sep 29, 2015, at 11:17 PM, Trygve Inda wrote: > > Surely there has to be a better way - that would mean I have to develop the > software with SIP turned off, then reboot to turn it on to test it on a > "real" system. I think that, by its very nature, SIP is

Re: XCode 7.0.1 Update

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 1:00 PM, Alex Zavatone wrote: > > Well, I've got it and am trying to build our apps and while I sort out our > issues, the sliding down of compiler output on the left hand pane is REALLY, > REALLY, REALLY visually distracting. Yeah, did that just start

Re: Xcode 7.0.1 SIGSEV on Git push

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 2:01 PM, Alex Zavatone wrote: > > Can't commit anything. Fun times. There’s this obscure command-line tool called “git”… ;-) Or GUI apps like SourceTree (free!) (Seriously, I _never_ commit or push anything from Xcode anymore. I’ve seen it do the wrong

Re: Xcode 7.0.1 SIGSEV on Git push

2015-10-01 Thread Jens Alfke
> On Oct 1, 2015, at 1:49 AM, Dave wrote: > > Totally and utterly agree, I always go into a cold sweat whenever something > horrid happens related to Git and when using XCode it happens all too often. On the other hand, the nice thing with Git is that you can always

Re: Xcode 7.0.1 SIGSEV on Git push

2015-10-01 Thread Jens Alfke
> On Oct 1, 2015, at 7:13 AM, Alex Zavatone wrote: > > Yeah, Jens, I know. Use the command line, I know, I know. No, use SourceTree! I very rarely commit from the command line. SourceTree is free, and a great complement to Xcode... Xcode is better at diffs and blame,

Re: Size of my app's window on different screens?

2015-10-01 Thread Jens Alfke
> On Oct 1, 2015, at 10:26 PM, Quincey Morris > wrote: > > set a default size that makes sense for your app, and a minimum size to > prevent the window from getting too small to display its content properly. > Then, windows always open at the default

Re: How do I tell if a library contains bitcode?

2015-10-03 Thread Jens Alfke
>> On Oct 2, 2015, at 11:40 AM, Jens Alfke <j...@mooseyard.com> wrote: >> >> How does one tell whether a static library contains bitcode? Jon Hjelle suggested: > A while back I came across this answer in the forums: > https://forums.developer.apple.c

How do I tell if a library contains bitcode?

2015-10-02 Thread Jens Alfke
How does one tell whether a static library contains bitcode? I work on a framework that’s distributed as a static library for iOS, so for developers using this in apps for iOS 9 I need to make sure it includes bitcode, so that their apps can include bitcode. I’ve rebuilt the framework with

Re: No Content

2015-09-19 Thread Jens Alfke
> On Sep 19, 2015, at 12:13 PM, Jan E. Schotsman wrote: > > After updating to Xcode 7 many guides have no table of contents anymore in > the side bar. > This includes the Swift documentation :-( I’ve noticed that in all the betas, and it’s one of those bugs that was so

Re: PRODUCT_BUNDLE_IDNTIFIER messes up LS?

2015-09-22 Thread Jens Alfke
> On Sep 22, 2015, at 5:38 AM, Christiaan Hofman wrote: > > Did anyone else see this? Could it be that I did anything wrong? Or is this a > bug in either Xcode’s building process or in LS, or the way they work > together (which I would call a bug in both)? I haven’t had

New C++ warning about comparing this==NULL

2015-12-02 Thread Jens Alfke
In Xcode 7 some C++ code of mine has started being flagged with a new warning: Value.cc:45:13: error: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Werror,-Wtautological-undefined-compare] if (this == NULL) return kNull;

Re: New C++ warning about comparing this==NULL

2015-12-02 Thread Jens Alfke
> On Dec 2, 2015, at 12:02 PM, Anders Montonen wrote: > > As I understand it, it has never been legal, since calling the method > requires dereferencing a NULL pointer. From ISO/IEC 14882:2003(E)), paragraph > 5.2.5/3: > “If E1 has the type 'pointer to class X,' then

Link-time optimization and static libraries

2015-12-09 Thread Jens Alfke
I’d like to try out link-time optimization in my project, but that project is a framework, which on iOS is built as a static library. I assumed the LTO option wouldn't affect building the library since there is no real link phase, so instead I enabled it in a separate target that builds an app

Re: Code completion performance

2015-12-14 Thread Jens Alfke
Code completion is pretty instantaneous for me (2014 MBP, 16GB RAM). How much RAM does your box have? If you have a big project with a lot of C++ code, completion might get slower. My experience has always been that C++ is a pig and using enough of it will bring any dev tool to its knees.

Re: Xcode editor broken

2015-12-21 Thread Jens Alfke
> On Dec 21, 2015, at 10:12 AM, Doug Hill wrote: > > Given the general whackiness of this problem, and the fact that I appear to > be an isolated incident, I decided to go the route of reinstalling a new > Xcode, and if that doesn’t help, a new system. Something fun to

  1   2   >