Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Lawrence Lomax 6477f0de87 Use Unisgned Integer (unsigned long long) for enumerations
Summary: `FBSimulatorState` puports to mirror the values of `CoreSimulator` but this isn't completely true as there is a difference in signedness. The dissasembly for CoreSimulator shows the `Invalid` state as being anything greater than `0x4` rather than `-1`. This means that Index Sets can be used as a more efficient way of storing collections of enumerated types, since the states can't be stored in a bitmask.

Reviewed By: marekcirkos

Differential Revision: D3184146

fb-gh-sync-id: 1ffe744611da91cb224b5c9b4cec6d8b9acfd408
fbshipit-source-id: 1ffe744611da91cb224b5c9b4cec6d8b9acfd408
2016-04-18 02:50:23 -07:00
Lawrence Lomax ab16dba4a6 Rename FBProcessQuery to FBProcessFetcher
Summary: `Query` objects should be consistent within the Framework, this means that a Query object should be a serializable representation of what should be fetched. `FBProcessFetcher` becomes a facade around the mechanics of getting to Process Info, a higher level API can then be built called `FBProcessQuery`.

Reviewed By: marekcirkos

Differential Revision: D3178745

fb-gh-sync-id: babd108772bb9ad30bcc88a15b5dfca2977295cf
fbshipit-source-id: babd108772bb9ad30bcc88a15b5dfca2977295cf
2016-04-14 08:15:34 -07:00
Marek Cirkos 56b8037fb3 Replaced loading Xcode3Core.ideplugin with DevTools*.frameworks
Summary: It will readuce amount of code loaded into runtime. This is because we need DevTool* frameworks that Xcode3Core loads, not Xcode3Core it self.

Reviewed By: lawrencelomax

Differential Revision: D3144332

fb-gh-sync-id: 636dc1d1da55458c167eaa96c6176f39bfcbbd3a
fbshipit-source-id: 636dc1d1da55458c167eaa96c6176f39bfcbbd3a
2016-04-06 07:45:59 -07:00
Marek Cirkos 6b21c8e8c5 Removed static bool from +[FBWeakFrameworkLoader loadPrivateFrameworks:...]
Summary:This method is used by FBSimulatorControl and XCTestBoostrap so we can't used static BOOL inside it to prevent multiple loads.
Added dispatch_once in FBSimulatorControl when calling it instead.

Reviewed By: nqmtuan

Differential Revision: D3144331

fb-gh-sync-id: 0822386d20a0fa9d0c4fd23e220d86d6e4369ee3
fbshipit-source-id: 0822386d20a0fa9d0c4fd23e220d86d6e4369ee3
2016-04-06 07:45:59 -07:00
Marek Cirkos 8c2c26504b Removed definition of unused DVTiPhoneSimulatorRemoteClient framework
Reviewed By: nqmtuan

Differential Revision: D3144329

fb-gh-sync-id: 86f094b7420868aac3cff5449b51405254a3ed62
fbshipit-source-id: 86f094b7420868aac3cff5449b51405254a3ed62
2016-04-06 07:45:59 -07:00
Marek Cirkos d3feec9ecd Handling missing framework image error, when loading FBWeakFramework
Summary:We can fail to load private frameworks due to missing image of third library that is needed by loaded framework.
Added error handling that will try to load missing framework image from given directory list.

Reviewed By: migchez, lawrencelomax

Differential Revision: D3138802

fb-gh-sync-id: 21710a38b9baf1fce981e81e42e342e4fa0085fa
fbshipit-source-id: 21710a38b9baf1fce981e81e42e342e4fa0085fa
2016-04-05 07:20:21 -07:00
Lawrence Lomax 5e8a340591 Improve Human Readable Representations
Summary: There are a number of reasons that the `fbsimctl` CLI is hard to use, one of them is that the output in the human-readable case is very inconsistent and verbose. This fixes these issues and simplifies the reporting mechanism.

Reviewed By: marekcirkos

Differential Revision: D3138428

fb-gh-sync-id: b8c9fab5af1c55df4fda7a356652fea76691bfed
fbshipit-source-id: b8c9fab5af1c55df4fda7a356652fea76691bfed
2016-04-05 02:55:28 -07:00
Marek Cirkos 50d7194104 Resolved private framework and plugins linking
Summary:Added support for linking frameworks that requires other frameworks to link beforehand.
This is required to link 'IDEiOSSupportCore.plugin' (used by XCTestBootstrap).

Also added check for multiple classes to confirm successful framework load.

Reviewed By: lawrencelomax

Differential Revision: D3120290

fb-gh-sync-id: 95f1c064406a6965d583c85d4b16b674e68f543b
fbshipit-source-id: 95f1c064406a6965d583c85d4b16b674e68f543b
2016-04-01 02:35:23 -07:00
Lawrence Lomax d37a88cd97 Connect FBSimulatorBridge for Simulator.app launches
Summary: We can't connect the Framebuffer to an application that has been launched by Simulator.app, but it is possible to connect the bridge. This consolidates a lot of the startup path and means that Simulator.app launches can benefit from the SimulatorBridge interactions. This will also enable connecting a Bridge to a running simulator.

Reviewed By: marekcirkos

Differential Revision: D3116151

fb-gh-sync-id: 7da224d7dc39bb25259029941066f21d47dec38c
fbshipit-source-id: 7da224d7dc39bb25259029941066f21d47dec38c
2016-03-31 03:35:31 -07:00
Lawrence Lomax 8887a1ed05 Move Weak Framework Loading to FBControlCore
Summary: This will allow Framework loading by XCTBootstrap & Others.

Reviewed By: marekcirkos

Differential Revision: D3092590

fb-gh-sync-id: c69645f21aa0d602e267fb76fc2d1e0cfe0aada7
shipit-source-id: c69645f21aa0d602e267fb76fc2d1e0cfe0aada7
2016-03-24 03:40:26 -07:00
Lawrence Lomax 72f976a573 Upload Arbitrary Files to Simulator
Summary: Uploading of abitrary files is useful if you wish to pass a parameter to an Application based on the existence of a local file. If the Simulator is remotely launched with idb, this can provide a handy way of getting the file onto the Simulator host.

Reviewed By: marekcirkos

Differential Revision: D3081303

fb-gh-sync-id: 50e41b0ce3650cabaa62955cefb1999677abb08c
shipit-source-id: 50e41b0ce3650cabaa62955cefb1999677abb08c
2016-03-24 02:50:36 -07:00
Lawrence Lomax 433d1b8792 Add Diagnostic Fetching by App ID & Filename
Summary: This adds the fetching of arbitrary diagnostics by a filename. This is handy if for instance an application has some special logging functionality and you want to extract these files as diagnostics.

Reviewed By: mmmulani

Differential Revision: D3047484

fb-gh-sync-id: e503cb529641ccf4a9c1d4dc13a78a2a0c176ca4
shipit-source-id: e503cb529641ccf4a9c1d4dc13a78a2a0c176ca4
2016-03-14 10:20:25 -07:00
Lawrence Lomax b067962e5d FBSimulatorError inherits from FBControlCoreError
Summary: Avoid the evils of duplication by inheriting and threading the error domain through

Reviewed By: marekcirkos

Differential Revision: D3040863

fb-gh-sync-id: 03691c404cd04c53f7652736a9833c845bf60b2c
shipit-source-id: 03691c404cd04c53f7652736a9833c845bf60b2c
2016-03-11 09:25:24 -08:00
Lawrence Lomax b2e2ef836c Add FBBatchLogSearchResult Model
Summary: Adding a Model for the Search result allows for easy serialization/deserializaiton and therefore wiring over a http server in `fbsimctl` land.

Reviewed By: marekcirkos

Differential Revision: D3040629

fb-gh-sync-id: 3a8caa6be6e945668e98a0c91bd99ba3aa3d973d
shipit-source-id: 3a8caa6be6e945668e98a0c91bd99ba3aa3d973d
2016-03-11 04:00:39 -08:00
Lawrence Lomax ace4073ea7 Add Concurrent Filter
Summary: We have `filterMap` and `mapFilter` but also just want `filter`

Reviewed By: nqmtuan

Differential Revision: D3035084

fb-gh-sync-id: 7e3dd323733b59e6621b53145c5ee635f890b696
shipit-source-id: 7e3dd323733b59e6621b53145c5ee635f890b696
2016-03-10 03:30:45 -08:00
Marek Cirkos 02445751d9 Extracted FBControlCore
Summary: Extracts FBControlCore for further integration with FBDeviceControl

Reviewed By: lawrencelomax

Differential Revision: D3023706

fb-gh-sync-id: 149fd233da04c6551e0296eb0146b87bf48fea1a
shipit-source-id: 149fd233da04c6551e0296eb0146b87bf48fea1a
2016-03-09 10:42:43 -08:00