|
Mikey-San posted:In the meantime, perhaps you could have a helper method that automated Settings.app to change the time/date in your tests. Settings.app doesn't allow us to change the date/time in the simulator is the thing. Arguably, we could run the tests on actual devices (gasp!), though we've run into other issues with trying to do that on our CI box (which may actually be a VM in a data center somewhere), such as dealing with device updates and that sort of thing. I also filed 32697021 for "make it easy to delete the app in UI tests", which is something we can do manually, but it'd be nice to have a quick way to do it. Another pie-in-the-sky, especially because we have a working workaround (especially now that it's not quite all private API in Xcode 9). Mikey-San posted:Notifications: Basically the same answer as above. This in particular would be awesome, because part of the "adjust date/time" functionality is having local notifications that ping things like "your file is going to be deleted in 2 days!" where tapping the notification does particular things, and again, we have to manually test it. So having access to the local notifications both in terms of "checking what it says" and "tapping it goes to the right place" would be huge. Though I suppose I can go write a radar for that sort of thing from an awesome API perspective anyway, but if we have a good workaround, that would really help. Edit: Radar 32697117 filed. I know it sounds like my application does a lot, but it's more because I'm responsible for a couple of different applications that are almost all apps internal to our enterprise client, and they sometimes have weird requirements. So I'm kind of munging them to say "my application". But you know, clients. Axiem fucked around with this message at 04:28 on Jun 11, 2017 |
# ? Jun 11, 2017 04:21 |
|
|
# ? May 16, 2024 03:27 |
|
Axiem posted:Settings.app doesn't allow us to change the date/time in the simulator is the thing. Arguably, we could run the tests on actual devices (gasp!), though we've run into other issues with trying to do that on our CI box (which may actually be a VM in a data center somewhere), such as dealing with device updates and that sort of thing. Ah yes, the simulator is a wrench in the workflow here. (The problem is really more of a simulator thing, but I know that's not really an important distinction for test authors.) In general, when there's a lack of parity in testing capability between device and simulator, we consider that an area of potential improvement.
|
# ? Jun 11, 2017 04:34 |
|
Mikey-San posted:(The problem is really more of a simulator thing, but I know that's not really an important distinction for test authors.) Though I can appreciate that it's an important distinction among y'all who build these things. I've worked in the "multiple teams all building parts of what to the users appears to be more or less a monolithic application" sort of team before, and it's lots of fun with the coordination, and dealing with users who don't really know whom to ask to do what, so things get confusing At least I have the radar in, and hopefully it can get routed to the right team (sounds like the Simulator team in this case) to take a look. I appreciate all the work y'all are doing, even though I sometimes get grumpy when things aren't working very well.
|
# ? Jun 11, 2017 04:41 |
|
I'm following an old 2014 tutorial on Reactive Cocoa with Obj-C, and the tutorial says to input the text code:
code:
|
# ? Jun 11, 2017 21:19 |
|
Gaining knowledge on RAC is more like "brain damage" than "learning". With ReactiveCocoa, the only right answer is to run away screaming. It's rather easy to make a mistake and do UI stuff on a background thread or mutate state in what is *intended* to be a functional pipeline, and I'm actively trying not to remember how RAC works right now.
|
# ? Jun 11, 2017 23:02 |
|
RAC() sets the value via KVC, which is why assigning the boxed value to a primitive property works. If validUsernameSignal or validPasswordSignal are retained by self then your first version has a retain cycle, while using RAC() does not retain the object it's setting values on (and automatically removes the subscription if the object is deallocated), which is the main functional advantage of it.
|
# ? Jun 12, 2017 01:07 |
|
Mikey-San posted:Ah yes, the simulator is a wrench in the workflow here. (The problem is really more of a simulator thing, but I know that's not really an important distinction for test authors.) In general, when there's a lack of parity in testing capability between device and simulator, we consider that an area of potential improvement. I believe SpringBoard owns Control Center. The date/time thing is a limit of the current architecture. In Xcode 9 the Simulator is a separate user space running on the macOS kernel so when you ask the kernel for the time we have no good way to lie about that. There is an interposition layer where we can hijack syscalls but it would be a very leaky abstraction. edit: To expand on that, there are several ways to ask for the current time, plus side-effects (like file creation times) that we can't possibly hide. We felt like having a half-assed implementation would be worse than none. Simulated fucked around with this message at 06:50 on Jun 12, 2017 |
# ? Jun 12, 2017 01:58 |
|
Simulated posted:edit: To expand on that, there are several ways to ask for the current time, plus side-effects (like file creation times) that we can't possibly hide. We felt like having a half-assed implementation would be worse than none. That's fair, and I figured it was something like that. It still remains something that we'd love to have
|
# ? Jun 12, 2017 19:05 |
|
I was was working on a storyboard in the XCode 9 beta, and trying to connect a delegate outlet for a UITextView to one of my view controllers. ...but instead of a "delegate" outlet I was seeing something like pasteDelegate and 2 other more specific delegates, with no "delegate" option. I was able to work around this just by setting the delegate relationship up in code, but is there some documentation I'm missing (I can't find anything relevant through googling)?
|
# ? Jun 15, 2017 19:43 |
|
Does your view controller conform to UITextViewDelegate?
|
# ? Jun 15, 2017 23:07 |
|
pokeyman posted:Does your view controller conform to UITextViewDelegate? Yes (after adding the view controller as a delegate in code, everything works as expected; all the methods of UITextViewDelegate are optional, so it's just declaring that you are one), but I'm not even getting that far. In this screenshot, I've got the UITextView selected, and you can see I have 3 outlet choices and none of them is just plain "delegate":
|
# ? Jun 16, 2017 00:21 |
|
Oh right you mentioned it works in code. My bad. Seems like a bug to me.
|
# ? Jun 16, 2017 00:54 |
|
Axiem posted:Along these lines: can this functionality be used to open up Control Center? Or interact with local notifications? Again in the realm of "tests we have to do manually and would love to automate", but I don't know if the current (expanded) functionality solves the problem. Sorry it took me a while to get back to you about this. Here are examples of automating Control Center and Notification Center alert windows. code:
Mikey-San fucked around with this message at 22:08 on Jun 16, 2017 |
# ? Jun 16, 2017 06:11 |
|
Plorkyeran posted:RAC() sets the value via KVC, which is why assigning the boxed value to a primitive property works. Thanks, I think I understand that. Mostly. In that case, I'll stick with the macro to avoid the risk of retain cycles. Doctor w-rw-rw- posted:Gaining knowledge on RAC is more like "brain damage" than "learning". With ReactiveCocoa, the only right answer is to run away screaming. Yeah that echoes my past experience trying to learn RAC by being shown a legacy project using it absolutely everything.
|
# ? Jun 16, 2017 07:48 |
|
Mikey-San posted:Sorry it took me a while to get back to you about this. Here are examples of automating Control Center and Notification Center alert windows. This is super awesome, and no worries on the delay. Thanks so much; this will be a huuuuuuuge help.
|
# ? Jun 16, 2017 19:03 |
|
Axiem posted:This is super awesome, and no worries on the delay. Thanks so much; this will be a huuuuuuuge help. Sure. I updated the example to assert the result of -waitForExistenceWithTimeout:, to signal failure earlier and more descriptively. If anyone's wondering where that method came from, it's new in Xcode 9.
|
# ? Jun 16, 2017 21:46 |
|
Mikey-San posted:If anyone's wondering where that method came from, it's new in Xcode 9. Which thankfully means I can get rid of our custom implementation for it I switch from working on one app to another today (I hate being responsible for a half-dozen apps, but what can you do?), and was doing it in Xcode 9 (because the editor is so much nicer for real), and when I went to run it on an iOS simulator, it failed miserably because one of the frameworks wasn't signed I think? I didn't investigate (didn't have the time), but it's possible that CocoaPods didn't get something set right, or that we don't have a setting or something. Are there new rules around signing even when going to the simulator, in iOS 11 / Xcode 9?
|
# ? Jun 17, 2017 00:07 |
|
If I have a project in Visual Studio (using Microsofts online version control), is there a way I can link Xcode in to using that, such that I can modify the project using either Xcode or Visual Studio?
|
# ? Jun 17, 2017 06:01 |
|
Axiem posted:Which thankfully means I can get rid of our custom implementation for it Most of this was in Xcode 8 but yes: the Simulator now enforces entitlements and code signing, though the signing certificate can be invalid IIRC. We just check that it has a signature. This is to help you catch problems quicker.
|
# ? Jun 17, 2017 06:11 |
|
PRADA SLUT posted:If I have a project in Visual Studio (using Microsofts online version control), is there a way I can link Xcode in to using that, such that I can modify the project using either Xcode or Visual Studio? Kinda, but not the way you're thinking. AFAIK neither Xcode nor Visual Studio can read each other's project files. What you can do is use something like CMAKE. CMAKE is able to generate project files for Xcode, Visual Studio, and a few others. You tell CMAKE what your source code files are, what settings they need, what the project settings should be, and then you can generate the necessary project files for Xcode and VS. If you add/remove files, you add/remove them from CMAKE and then regenerate the project files. If you want to change build settings, change them in CMAKE and regenerate the project files. Etc. etc. etc.
|
# ? Jun 17, 2017 06:23 |
|
I'm very new to development, so I'm probably using some wrong terms here, but I'm am trying to make an iMessage app with essentially three separate views -- compact (first image, when App is as big as they keyboard), expanded (second image) and a different view when the user touches a message (third image). I'm trying to change didBecomeActive to account for the possible states... is this the right approach? Am I making any drat sense? code:
|
# ? Jun 20, 2017 18:56 |
|
That's how our app does it. If you are subclassing `MSMessagesAppViewController` (I think you have to? IDK, I didn't write this code) `presentationStyle` will be set to the correct value at that point so you don't need to `let presentationStyle = something`. You also should override `willTransition(to presentationStyle: MSMessagesAppPresentationStyle)` to adjust for changes.
dc3k fucked around with this message at 02:08 on Jun 21, 2017 |
# ? Jun 21, 2017 02:06 |
|
So, has everyone just given up on po in the debugger? poo poo has gone from bad to worse since Swift every single update. Print a local variable? AHHHH WHAT?? IMPOSSIBLE CAN'T
|
# ? Jun 30, 2017 22:25 |
|
lord funk posted:So, has everyone just given up on po in the debugger? poo poo has gone from bad to worse since Swift every single update. The LLDB team is hiring.
|
# ? Jun 30, 2017 22:44 |
|
lord funk posted:So, has everyone just given up on po in the debugger? poo poo has gone from bad to worse since Swift every single update. It worked for you in Swift at some point?
|
# ? Jul 1, 2017 01:49 |
|
lord funk posted:So, has everyone just given up on po in the debugger? poo poo has gone from bad to worse since Swift every single update. I still sometimes do this, then I go get a cup of coffee while waiting.
|
# ? Jul 1, 2017 07:07 |
|
Simulated posted:The LLDB team is hiring. Hire documentation writers first please
|
# ? Jul 1, 2017 13:58 |
|
hackbunny posted:Hire documentation writers first please That team is also hiring right now.
|
# ? Jul 2, 2017 08:53 |
|
Or join Facebook, where we also contribute to clang/llvm/lldb/etc, and we have better benefits and a good culture :P
|
# ? Jul 2, 2017 11:37 |
|
Does apple recruit people that will live outside commuting distance to the UFO? I would apply but I like my cheap NYC rents and culture.
|
# ? Jul 2, 2017 16:45 |
|
We don't usually hire people to work remotely or allow them to move away, no. Exceptions have been made in the past on both counts, but there's no regular policy of allowing it after a certain amount of service or whatever. For what it's worth, I don't know what stereotypes people have about Apple or Silicon Valley, but the Xcode team at least is a standard professional environment where everyone has an office (admittedly a shared one) and people work normal hours and there is a general culture of collaboration and respect and nobody gets to be a rockstar who doesn't have to follow the rules.
|
# ? Jul 2, 2017 18:23 |
|
So does that mean if I have separate day/night phones, and the ringtone turned off so I'm always on the offensive, that I can't work on the Xcode team?
|
# ? Jul 2, 2017 18:38 |
|
It was more a comment on the culture of the city I live in, than company culture; no shade intended. I'm sure a mature company like apple tries to get a handle on the good trends in tech and culture and moves in their direction. The weather would be a upgrade but I play second fiddle to my +1's career so companies without an NYC office or remote are not an option.
|
# ? Jul 2, 2017 19:14 |
|
Simulated posted:That team is also hiring right now. I hope so! Correct me if I'm wrong but the bulk of the lldb documentation is still that "gdb to lldb" cheat sheet
|
# ? Jul 2, 2017 19:24 |
|
Kallikrates posted:It was more a comment on the culture of the city I live in, than company culture; no shade intended. I'm sure a mature company like apple tries to get a handle on the good trends in tech and culture and moves in their direction. I figured as much. I just can't ever pass up an opportunity to take potshots at alpha male tech bros (the "no ringtone" thing is from the Path CEO IIRC). Doc Block fucked around with this message at 19:31 on Jul 2, 2017 |
# ? Jul 2, 2017 19:28 |
|
Kallikrates posted:I play second fiddle to my +1's career so companies without an NYC office or remote are not an option. Trust me, I completely understand.
|
# ? Jul 2, 2017 19:39 |
|
Kallikrates posted:Does apple recruit people that will live outside commuting distance to the UFO? I would apply but I like my cheap NYC rents and culture.
|
# ? Jul 2, 2017 19:40 |
|
rjmccall posted:For what it's worth, I don't know what stereotypes people have about Apple or Silicon Valley, but the Xcode team at least is a standard professional environment where everyone has an office (admittedly a shared one) and people work normal hours and there is a general culture of collaboration and respect and nobody gets to be a rockstar who doesn't have to follow the rules. Yeah, it's really nice, and it's been like this for a long time too.
|
# ? Jul 2, 2017 19:47 |
|
rjmccall posted:For what it's worth, I don't know what stereotypes people have about Apple or Silicon Valley, but the Xcode team at least is a standard professional environment where everyone has an office (admittedly a shared one) and people work normal hours and there is a general culture of collaboration and respect and nobody gets to be a rockstar who doesn't have to follow the rules. The most recent article I saw (can't remember where) seemed to say there was a large degree of competitiveness and you should probably be a marathon runner or something to fit in because most people have some sort of competitive hobby outside of work. They reported that long hours weren't the norm, but high levels of productivity were expected. That's just my recollection though.
|
# ? Jul 2, 2017 21:19 |
|
|
# ? May 16, 2024 03:27 |
|
Doctor w-rw-rw- posted:Facebook's got a major engineering office in NYC. I know, I got rejected from the prescreen interview about 2 years ago. I got tripped up on the base cases of a tree traversal algorithm problem on a whiteboard. Today I don't think I would apply, or accept.
|
# ? Jul 2, 2017 21:31 |