Skip to content

Fails to build on MacOS Monterey  #4

@RossMeikleham

Description

@RossMeikleham

On OSX Montorey the RakeFile script attempts to create the BUILD_PRODUCTS_DIR at /build which fails due to SIP. : %{BUILT_PRODUCTS_DIR="build"}

CreateBuildDirectory /build
    cd /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/SDL.xcodeproj
    builtin-create-build-directory /build
error: mkdir(/build, S_IRWXU | S_IRWXG | S_IRWXO): Read-only file system (30)

OS Version:

~/ uname -a
Darwin MacBook-Air 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64

Full Log:

~/ git clone https://github.com/manifest/sdl-ios-framework; cd sdl-ios-framework; rake build_all
Cloning into 'sdl-ios-framework'...
remote: Enumerating objects: 111, done.
remote: Total 111 (delta 0), reused 0 (delta 0), pack-reused 111
Receiving objects: 100% (111/111), 25.39 KiB | 812.00 KiB/s, done.
Resolving deltas: 100% (54/54), done.

>>> downloading SDL ------------------------------------------------------------
requesting all changes
adding changesets
adding manifests
adding file changes
added 14879 changesets with 57339 changes to 5338 files (+1 heads)
new changesets 74212992fb08:d8f0192cb8a4
updating to branch default
1607 files updated, 0 files merged, 0 files removed, 0 files unresolved

>>> building SDL ---------------------------------------------------------------
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk iphoneos15.0 -configuration Release -target libSDL -arch armv7 -project /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/SDL.xcodeproj TARGETED_DEVICE_FAMILY=1,2 BUILT_PRODUCTS_DIR=build CONFIGURATION_BUILD_DIR=/Users/ross/sdl-ios-framework/build/sdl/iphoneos15.0-armv7-Release CONFIGURATION_TEMP_DIR=/Users/ross/sdl-ios-framework/build/sdl/iphoneos15.0-armv7-Release.build IPHONEOS_DEPLOYMENT_TARGET=5.0

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = armv7
    BUILT_PRODUCTS_DIR = build
    CONFIGURATION_BUILD_DIR = /Users/ross/sdl-ios-framework/build/sdl/iphoneos15.0-armv7-Release
    CONFIGURATION_TEMP_DIR = /Users/ross/sdl-ios-framework/build/sdl/iphoneos15.0-armv7-Release.build
    IPHONEOS_DEPLOYMENT_TARGET = 5.0
    SDKROOT = iphoneos15.0
    TARGETED_DEVICE_FAMILY = 1,2

2021-11-28 09:51:01.250 xcodebuild[63834:13568662] CoreSimulator detected version change.  Framework version (776.4) does not match existing job version (757.3).  Attempting to remove the stale service in order to add the expected version.
note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: 67222247cd50ad3731dcc8940892d4aa
Build description path: /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/build/XCBuildData/67222247cd50ad3731dcc8940892d4aa-desc.xcbuild

note: Build preparation complete
warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
CreateBuildDirectory /build
    cd /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/SDL.xcodeproj
    builtin-create-build-directory /build
error: mkdir(/build, S_IRWXU | S_IRWXG | S_IRWXO): Read-only file system (30)

CreateBuildDirectory /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/build
    cd /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/SDL.xcodeproj
    builtin-create-build-directory /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/build

/Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/SDL.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'libSDL' from project 'SDL')
warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'libSDL' from project 'SDL')
** BUILD FAILED **


The following build commands failed:
	CreateBuildDirectory /build
(1 failure)
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk iphoneos15.0 -configuration Release -target libSDL -arch armv7s -project /Users/ross/sdl-ios-framework/src/SDL/Xcode-iOS/SDL/SDL.xcodeproj TARGETED_DEVICE_FAMILY=1,2 BUILT_PRODUCTS_DIR=build CONFIGURATION_BUILD_DIR=/Users/ross/sdl-ios-framework/build/sdl/iphoneos15.0-armv7s-Release CONFIGURATION_TEMP_DIR=/Users/ross/sdl-ios-framework/build/sdl/iphoneos15.0-armv7s-Release.build IPHONEOS_DEPLOYMENT_TARGET=5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions