ObjFW  Check-in [95f945430a]

Overview
Comment:README.md: Update for removed Xcode project
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 95f945430a3d027beb0235a514ade06ea71e8fb1c0178ff6d7a71d914a90dd69
User & Date: js on 2018-01-21 02:02:15
Other Links: manifest | tags
Context
2018-01-21
02:20
Allow boxing of most structs check-in: 88b19eae2c user: js tags: trunk
02:02
README.md: Update for removed Xcode project check-in: 95f945430a user: js tags: trunk
01:38
OFValue: Add support for pointers and objects check-in: 237a4e91a9 user: js tags: trunk
Changes

Modified README.md from [d1192574f1] to [72a6fd298a].

15
16
17
18
19
20
21
22
23
24
25
26
27
28

29
30
31





32

33





34
35
36
37
38
39
40
41
42
43
44
45
46
    $ ./configure
    $ make
    $ make install

  In case you checked out ObjFW from the Git repository, you need to run
  the following command first:

    $ autoreconf


Building as a macOS or iOS framework
====================================

  It is also possible to build ObjFW as a macOS framework. To do so, just

  execute `xcodebuild -target 'ObjFW (Mac)'` in the root directory of ObjFW to
  build it as a macOS framework or `xcodebuild -target 'ObjFW (iOS)'` to build
  it as an iOS framework; alternatively, you can open the .xcodeproj in Xcode





  and choose Build -> Build from the menu. Copy the resulting ObjFW.framework

  to `/Library/Frameworks` and you are done.







Using the macOS or iOS framework in Xcode
=========================================

  To use the macOS framework in Xcode, you need to add the .framework to your
  project and add the following flags to `Other C Flags`:

    -fconstant-string-class=OFConstantString -fno-constant-cfstrings

  Optionally, if you want to use blocks, you also need to add:

    -fblocks







|





|
>
|
|
|
>
>
>
>
>
|
>
|
>
>
>
>
>





|







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
    $ ./configure
    $ make
    $ make install

  In case you checked out ObjFW from the Git repository, you need to run
  the following command first:

    $ ./autogen.sh


Building as a macOS or iOS framework
====================================

  When building for macOS or iOS, everything is built as a `.framework` by
  default if `--disable-shared` has not been specified to `configure`.

  To build for iOS, use something like this:

    $ clang="clang --sysroot $(xcrun --sdk iphoneos --show-sdk-path)"
    $ export OBJC="$clang -arch armv7 -arch arm64"
    $ export OBJCPP="$clang -arch armv7 -E"
    $ export IPHONEOS_DEPLOYMENT_TARGET="10.0"
    $ ./configure --prefix=/usr/local/ios --host=arm-apple-darwin

  To build for the iOS simulator, use something like this:

    $ clang="clang --sysroot $(xcrun --sdk iphonesimulator --show-sdk-path)"
    $ export OBJC="$clang -arch i386 -arch x86_64"
    $ export OBJCPP="$clang -arch i386 -E"
    $ export IPHONEOS_DEPLOYMENT_TARGET="10.0"
    $ ./configure --prefix=/usr/local/iossim --host=i386-apple-darwin


Using the macOS or iOS framework in Xcode
=========================================

  To use the macOS framework in Xcode, you need to add the `.framework`s to your
  project and add the following flags to `Other C Flags`:

    -fconstant-string-class=OFConstantString -fno-constant-cfstrings

  Optionally, if you want to use blocks, you also need to add:

    -fblocks