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

9 Коммитов

Автор SHA1 Сообщение Дата
Andres Suarez 68dc6fd7c6 Yearless license header
Differential Revision: D18292977

fbshipit-source-id: 726c66fe753450cc6500180bb8e158e66713ebd0
2019-11-03 13:03:11 -08:00
Lawrence Lomax ff8691e4d4 Re-license as MIT
Summary: $TITLE

Reviewed By: zeyadsalloum, JoelMarcey

Differential Revision: D14365624

fbshipit-source-id: 803f4b69f8df5c45ac02ded04a4fd8f61bd502d7
2019-03-08 01:10:44 -08:00
Lawrence Lomax 5b169ed27e Hook CoreSimulator Logging
Summary:
It now appears that to support both ASL and `os_log`, Apple needed to add in the ability to set a custom logging function. This API is then part of the `CoreSimulator`, and we can therefore use it.

This is pretty simple, and `SimLog` is a standard format function with the function name and line number. We discard (but document) these values. We can then extract the actual format string and pass it into our logging subsystem.

Reviewed By: c-ryan747

Differential Revision: D14225899

fbshipit-source-id: 3f389617f1baf90d7fcbe4367a695e37942a73be
2019-03-04 02:02:04 -08:00
Lawrence Lomax b3fcec8484 Only provide loading for (Mobile|DL)Device
Summary: We now don't need the Xcode frameworks for devices, so can remove the loading of these classes. This also means ejecting some unit tests that are no longer relevant, since the code this depends on is also gone

Reviewed By: zeyadsalloum

Differential Revision: D14163765

fbshipit-source-id: 158ef2d469a4900fc99f9ec3a154bfdb85261bf5
2019-02-22 07:41:19 -08:00
Lawrence Lomax 29576b479e Extract dlopen on Framework loading
Summary: This can be shared as the behaviour for SimulatorKit and AMDevice can be the same.

Differential Revision: D8116756

fbshipit-source-id: 2e0157fccd427fed102ae769d9f3692c8a8da587
2018-05-25 08:07:22 -07:00
Lawrence Lomax 374619b373 s/@returns/@return
Summary: This is a repeated typo.

Reviewed By: antiarchit

Differential Revision: D5735050

fbshipit-source-id: c47c552f0792b3ca4d104e477887852c9d8f3464
2017-08-30 06:55:22 -07:00
Lawrence Lomax 797cfcdffe Simplify two-stage framework loading
Summary:
Currently the implementation of framework loading is done via subclassing `FBControlCoreFrameworkLoader`. By moving towards shared-instances the following happens:
1) Sharing of state via instances, rather than ad-hoc `hasLoaded` static vars
2) Two-Stage loading in `FBDeviceControl` is vastly simplified through class-clusters
3) No repetition of the actual framework loading call in subclasses.
4) The simple-case in `XCTestBootstrap` is done via an instance
5) Improved clarity in callers of two-stage loading
6) No need to explictly override a method on `FBControlCoreFrameworkLoader`

Reviewed By: asm89

Differential Revision: D5488270

fbshipit-source-id: 1ae592c4aa64211183c38d59590917bbae4540a3
2017-07-26 09:59:28 -07:00
Lawrence Lomax b2ee10dad9 Move FBGetSymbolFromHandle to FBControlCore
Summary: This will enable re-use in `FBSimulatorControl`

Reviewed By: mattjgalloway

Differential Revision: D5337885

fbshipit-source-id: 433d1af4f5c0b5933a5a050cf8d348c35253d577
2017-06-29 03:42:58 -07:00
Lawrence Lomax 6af8371b09 Prevent Running as root
Summary: If you run as root, you're gonna have a bad time. This makes this kind of failure even more obvious by providing an error message.

Reviewed By: marekcirkos

Differential Revision: D3702859

fbshipit-source-id: 0b5457a2f993cb4c27b21b16a56357edf0f89883
2016-08-11 14:04:16 -07:00