birdofpreyru / react-native-static-server

Embedded HTTP server for React Native
https://dr.pogodin.studio/docs/react-native-static-server
Other
135 stars 21 forks source link

Support for tvOS platform? #60

Open Duell10111 opened 1 year ago

Duell10111 commented 1 year ago

The pod currently seem to only support iOS, is tvOS support planned?

birdofpreyru commented 1 year ago

Hey @Duell10111 , I have not thought about it, and I don't have a beforehand experience with tvOS, thus don't know for sure how much efforts it would take to support it. I guess, in the next round of updates in this library, I'll try to build it for tvOS, to at least get a taste of what it takes.

Duell10111 commented 1 year ago

Hey @birdofpreyru, thanks that would be awesome. The effort hardly depends on the compatibility of the libraries used with tvOS itself. πŸ˜…

Duell10111 commented 1 year ago

I tried to add tvOS support by adding the platform to the podspecs.

Currently the cmake process seems to not work, with the current setup.

The code can be seen here: https://github.com/Duell10111/react-native-static-server/tree/tvos

Logs from the build:

    /bin/sh -c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/Script-46EB2E00024CC0.sh

debug CMake Warning (dev) at CMakeLists.txt:130:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

debug CMake Warning (dev) at CMakeLists.txt:131:
  Syntax Warning in cmake code at column 22

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

debug CMake Warning (dev) at CMakeLists.txt:132:
  Syntax Warning in cmake code at column 29

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

debug CMake Warning (dev) at CMakeLists.txt:133:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

debug CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

debug CMake Warning (dev) at CMakeLists.txt:1 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

debug CMake Deprecation Warning at CMakeLists.txt:106 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

debug -- The C compiler identification is AppleClang 14.0.3.14030022

debug -- Detecting C compiler ABI info

debug -- Detecting C compiler ABI info - failed

debug -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

debug -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - broken

debug CMake Error at /opt/homebrew/Cellar/cmake/3.27.1/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2/CMakeFiles/CMakeScratch/TryCompile-J0ruxG'

    Run Build Command(s): /opt/homebrew/Cellar/cmake/3.27.1/bin/cmake -E env VERBOSE=1 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile cmTC_2a319/fast
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/cmTC_2a319.dir/build.make CMakeFiles/cmTC_2a319.dir/build
    Building C object CMakeFiles/cmTC_2a319.dir/testCCompiler.c.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -target x86_64-apple-ios-macabi  -arch arm64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk -MD -MT CMakeFiles/cmTC_2a319.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_2a319.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_2a319.dir/testCCompiler.c.o -c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2/CMakeFiles/CMakeScratch/TryCompile-J0ruxG/testCCompiler.c
    clang: warning: using sysroot for 'AppleTVSimulator' but targeting 'MacOSX' [-Wincompatible-sysroot]
    clang: warning: using sysroot for 'AppleTVSimulator' but targeting 'MacOSX' [-Wincompatible-sysroot]
    Linking C executable cmTC_2a319
    /opt/homebrew/Cellar/cmake/3.27.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2a319.dir/link.txt --verbose=1
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc  -target x86_64-apple-ios-macabi  -arch arm64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/homebrew/opt/ruby/lib  CMakeFiles/cmTC_2a319.dir/testCCompiler.c.o -o cmTC_2a319 
    clang: warning: using sysroot for 'AppleTVSimulator' but targeting 'MacOSX' [-Wincompatible-sysroot]
    clang: warning: using sysroot for 'AppleTVSimulator' but targeting 'MacOSX' [-Wincompatible-sysroot]
    ld: building for Mac Catalyst, but linking in .tbd built for tvOS Simulator, file '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk/usr/lib/libSystem.tbd' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [cmTC_2a319] Error 1
    make: *** [cmTC_2a319/fast] Error 2

debug  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:107 (PROJECT)
birdofpreyru commented 1 year ago

@Duell10111 I guess, it needs some correction around here: https://github.com/birdofpreyru/react-native-static-server/blob/7a584738421733d4a8126fc4df2d0be974c3351f/CMakeLists.txt#L41-L59

If I remember it correctly, when implementing macOS Catalyst support I had a similar problem, and thus there is that if condition, which adds into CMAKE_C_FLAGS -target x86_64-apple-ios-macabi to force it targeting the correct target. I guess, with AppleTV we'll need some other -target value.

exotexot commented 1 year ago

Don't know if it helps:

https://rust-lang.github.io/rustup-components-history/x86_64-apple-ios.html

aarch64-apple-tvos / x86_64-apple-tvos

Duell10111 commented 1 year ago

Thank you very much I changed the target x86_64-apple-ios-macabi to x86_64-apple-tvos for testing and now I get a different error. πŸ˜…

    /bin/sh -c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/Script-46EB2E00024CC0.sh
CMake Error: Error: generator : Xcode
Does not match the generator used previously: Unix Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
Command PhaseScriptExecution failed with a nonzero exit code

Sorry if I do not see the error on first place as I am kind of CMake newbie. 😁

birdofpreyru commented 1 year ago

Clean & re-build.

Duell10111 commented 1 year ago

Hmm I quite unsure how to clean the CMake cache, clearing the XCode Build Cache did not work unfortunately.

birdofpreyru commented 1 year ago

Removing everything from /Users/kospaeth/Library/Developer/Xcode/DerivedData should do it, I guess.

Duell10111 commented 1 year ago

Thanks that worked.

EDIT:

I got the error solved by adding a tvOS section in the podsec script using the TVOS_DEPLOYMENT_TARGET, instead of Phone target.

Now the build seems to work, but the script still fails, but I do not see the next relevant error.

Logs:

    export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES\=/usr/include\ /usr/local/include\ /System/Library/Frameworks\ /System/Library/PrivateFrameworks\ /Applications/Xcode.app/Contents/Developer/Headers\ /Applications/Xcode.app/Contents/Developer/SDKs\ /Applications/Xcode.app/Contents/Developer/Platforms
    export PER_ARCH_OBJECT_FILE_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/Objects-normal/undefined_arch
    export PER_VARIANT_OBJECT_FILE_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/Objects-normal
    export PKGINFO_FILE_PATH\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/PkgInfo
    export PLATFORM_DEVELOPER_APPLICATIONS_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Applications
    export PLATFORM_DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/usr/bin
    export PLATFORM_DEVELOPER_LIBRARY_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library
    export PLATFORM_DEVELOPER_SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs
    export PLATFORM_DEVELOPER_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Tools
    export PLATFORM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/usr
    export PLATFORM_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform
    export PLATFORM_DISPLAY_NAME\=tvOS\ Simulator
    export PLATFORM_FAMILY_NAME\=tvOS
    export PLATFORM_NAME\=appletvsimulator
    export PLATFORM_PREFERRED_ARCH\=x86_64
    export PLATFORM_PRODUCT_BUILD_VERSION\=20L489
    export PLIST_FILE_OUTPUT_FORMAT\=binary
    export PODS_BUILD_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products
    export PODS_CONFIGURATION_BUILD_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator
    export PODS_DEVELOPMENT_LANGUAGE\=en
    export PODS_ROOT\=/Users/kospaeth/Git/React-Native/reacttube/ios/Pods
    export PODS_TARGET_SRCROOT\=/Users/kospaeth/Git/React-Native/reacttube/ios/Pods/../../node_modules/@dr.pogodin/react-native-static-server
    export PODS_XCFRAMEWORKS_BUILD_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/XCFrameworkIntermediates
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR\=YES
    export PRECOMP_DESTINATION_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS\=NO
    export PRODUCT_BUNDLE_IDENTIFIER\=org.cocoapods.dr-pogodin-react-native-static-server-tvOS
    export PRODUCT_MODULE_NAME\=dr_pogodin_react_native_static_server
    export PRODUCT_NAME\=dr-pogodin-react-native-static-server-tvOS
    export PRODUCT_SETTINGS_PATH\=
    export PRODUCT_TYPE\=com.apple.product-type.library.static
    export PROFILING_CODE\=NO
    export PROJECT\=Pods
    export PROJECT_DERIVED_FILE_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/DerivedSources
    export PROJECT_DIR\=/Users/kospaeth/Git/React-Native/reacttube/ios/Pods
    export PROJECT_FILE_PATH\=/Users/kospaeth/Git/React-Native/reacttube/ios/Pods/Pods.xcodeproj
    export PROJECT_NAME\=Pods
    export PROJECT_TEMP_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build
    export PROJECT_TEMP_ROOT\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex
    export REACT_NATIVE_PATH\=/Users/kospaeth/Git/React-Native/reacttube/ios/Pods/../../node_modules/react-native
    export RECOMMENDED_TVOS_DEPLOYMENT_TARGET\=12.4
    export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS\=YES
    export REMOVE_CVS_FROM_RESOURCES\=YES
    export REMOVE_GIT_FROM_RESOURCES\=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES\=YES
    export REMOVE_HG_FROM_RESOURCES\=YES
    export REMOVE_SVN_FROM_RESOURCES\=YES
    export REZ_COLLECTOR_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/ResourceManagerResources
    export REZ_EXECUTABLE\=YES
    export REZ_OBJECTS_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/ResourceManagerResources/Objects
    export REZ_SEARCH_PATHS\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS\ 
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES\=NO
    export SCRIPT_INPUT_FILE_COUNT\=0
    export SCRIPT_INPUT_FILE_LIST_COUNT\=0
    export SCRIPT_OUTPUT_FILE_0\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS/liblighttpd.a
    export SCRIPT_OUTPUT_FILE_1\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS/libmod_dirlisting.a
    export SCRIPT_OUTPUT_FILE_2\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS/libmod_h2.a
    export SCRIPT_OUTPUT_FILE_3\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS/libpcre2-8.a
    export SCRIPT_OUTPUT_FILE_COUNT\=4
    export SCRIPT_OUTPUT_FILE_LIST_COUNT\=0
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk
    export SDK_DIR\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk
    export SDK_DIR_appletvsimulator\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk
    export SDK_DIR_appletvsimulator16_4\=/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk
    export SDK_NAME\=appletvsimulator16.4
    export SDK_NAMES\=appletvsimulator16.4
    export SDK_PRODUCT_BUILD_VERSION\=20L489
    export SDK_STAT_CACHE_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData
    export SDK_STAT_CACHE_ENABLE\=YES
    export SDK_STAT_CACHE_PATH\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/appletvsimulator16.4-20L489-.sdkstatcache
    export SDK_VERSION\=16.4
    export SDK_VERSION_ACTUAL\=160400
    export SDK_VERSION_MAJOR\=160000
    export SDK_VERSION_MINOR\=160400
    export SED\=/usr/bin/sed
    export SEPARATE_STRIP\=NO
    export SEPARATE_SYMBOL_EDIT\=NO
    export SET_DIR_MODE_OWNER_GROUP\=YES
    export SET_FILE_MODE_OWNER_GROUP\=NO
    export SHALLOW_BUNDLE\=NO
    export SHARED_DERIVED_FILE_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS/DerivedSources
    export SHARED_PRECOMPS_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/PrecompiledHeaders
    export SKIP_INSTALL\=YES
    export SOURCE_ROOT\=/Users/kospaeth/Git/React-Native/reacttube/ios/Pods
    export SRCROOT\=/Users/kospaeth/Git/React-Native/reacttube/ios/Pods
    export STRINGSDATA_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/Objects-normal/undefined_arch
    export STRINGSDATA_ROOT\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build
    export STRINGS_FILE_INFOPLIST_RENAME\=YES
    export STRINGS_FILE_OUTPUT_ENCODING\=binary
    export STRIP_BITCODE_FROM_COPIED_FILES\=NO
    export STRIP_INSTALLED_PRODUCT\=NO
    export STRIP_STYLE\=debugging
    export STRIP_SWIFT_SYMBOLS\=YES
    export SUPPORTED_DEVICE_FAMILIES\=3,5
    export SUPPORTED_PLATFORMS\=appletvos\ appletvsimulator
    export SUPPORTS_TEXT_BASED_API\=NO
    export SWIFT_ACTIVE_COMPILATION_CONDITIONS\=DEBUG\ 
    export SWIFT_EMIT_LOC_STRINGS\=NO
    export SWIFT_OPTIMIZATION_LEVEL\=-Onone
    export SWIFT_PLATFORM_TARGET_PREFIX\=tvos
    export SWIFT_RESPONSE_FILE_PATH_normal_arm64\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/Objects-normal/arm64/dr-pogodin-react-native-static-server-tvOS.SwiftFileList
    export SWIFT_VERSION\=5.0
    export SYMROOT\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products
    export SYSTEM_ADMIN_APPS_DIR\=/Applications/Utilities
    export SYSTEM_APPS_DIR\=/Applications
    export SYSTEM_CORE_SERVICES_DIR\=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR\=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR\=/Applications/Xcode.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built\ Examples
    export SYSTEM_DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Graphics\ Tools
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Java\ Tools
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Performance\ Tools
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/releasenotes
    export SYSTEM_DEVELOPER_TOOLS\=/Applications/Xcode.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/documentation/DeveloperTools
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/releasenotes/DeveloperTools
    export SYSTEM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DEXT_INSTALL_PATH\=/System/Library/DriverExtensions
    export SYSTEM_DOCUMENTATION_DIR\=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH\=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR\=/System/Library
    export TAPI_DEMANGLE\=YES
    export TAPI_ENABLE_PROJECT_HEADERS\=NO
    export TAPI_LANGUAGE\=objective-c
    export TAPI_LANGUAGE_STANDARD\=compiler-default
    export TAPI_VERIFY_MODE\=ErrorsOnly
    export TARGETED_DEVICE_FAMILY\=3
    export TARGETNAME\=dr-pogodin-react-native-static-server-tvOS
    export TARGET_BUILD_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Products/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS
    export TARGET_DEVICE_IDENTIFIER\=5B13D073-C9D1-46FC-8A55-F7A615F37F6A
    export TARGET_DEVICE_MODEL\=AppleTV14,1
    export TARGET_DEVICE_OS_VERSION\=16.1
    export TARGET_DEVICE_PLATFORM_NAME\=appletvsimulator
    export TARGET_NAME\=dr-pogodin-react-native-static-server-tvOS
    export TARGET_TEMP_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build
    export TEMP_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build
    export TEMP_FILES_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build
    export TEMP_FILE_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build
    export TEMP_ROOT\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex
    export TEST_FRAMEWORK_SEARCH_PATHS\=\ /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library/Frameworks\ /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk/Developer/Library/Frameworks
    export TEST_LIBRARY_SEARCH_PATHS\=\ /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/usr/lib
    export TOOLCHAINS\=com.apple.dt.toolchain.XcodeDefault
    export TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES\=NO
    export TVOS_DEPLOYMENT_TARGET\=11.0
    export UID\=501
    export UNINSTALLED_PRODUCTS_DIR\=/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/UninstalledProducts
    export UNSTRIPPED_PRODUCT\=NO
    export USER\=kospaeth
    export USER_APPS_DIR\=/Users/kospaeth/Applications
    export USER_LIBRARY_DIR\=/Users/kospaeth/Library
    export USE_DYNAMIC_NO_PIC\=YES
    export USE_HEADERMAP\=YES
    export USE_HEADER_SYMLINKS\=NO
    export USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES\=YES
    export VALIDATE_DEVELOPMENT_ASSET_PATHS\=YES_ERROR
    export VALIDATE_PRODUCT\=NO
    export VALID_ARCHS\=arm64\ arm64e\ x86_64
    export VERBOSE_PBXCP\=NO
    export VERSION_INFO_BUILDER\=kospaeth
    export VERSION_INFO_FILE\=dr-pogodin-react-native-static-server-tvOS_vers.c
    export VERSION_INFO_STRING\=\"@\(\#\)PROGRAM:dr-pogodin-react-native-static-server-tvOS\ \ PROJECT:Pods-\"
    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES\=NO
    export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode
    export XCODE_PRODUCT_BUILD_VERSION\=14E300c
    export XCODE_VERSION_ACTUAL\=1431
    export XCODE_VERSION_MAJOR\=1400
    export XCODE_VERSION_MINOR\=1430
    export XPCSERVICES_FOLDER_PATH\=/XPCServices
    export YACC\=yacc
    export arch\=undefined_arch
    export variant\=normal
    /bin/sh -c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/Script-46EB2E00024CC0.sh
CMake Warning (dev) at CMakeLists.txt:130:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:131:
  Syntax Warning in cmake code at column 22

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:132:
  Syntax Warning in cmake code at column 29

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:133:
  Syntax Warning in cmake code at column 30

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:1 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:106 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Could not find OPTIONAL package Readline
-- Could not find OPTIONAL package Editline
-- 
-- 
-- PCRE2-10.42 configuration summary:
-- 
--   Install prefix .................. : /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/sysroot
--   C compiler ...................... : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
--   C compiler flags ................ : -O3 -DNDEBUG
-- 
--   Build 8 bit PCRE2 library ....... : ON
--   Build 16 bit PCRE2 library ...... : OFF
--   Build 32 bit PCRE2 library ...... : OFF
--   Enable JIT compiling support .... : OFF
--   Use SELinux allocator in JIT .... : IGNORE
--   Enable Unicode support .......... : ON
--   Newline char/sequence ........... : LF
--   \R matches only ANYCRLF ......... : OFF
--   \C is disabled .................. : OFF
--   EBCDIC coding ................... : OFF
--   EBCDIC coding with NL=0x25 ...... : OFF
--   Rebuild char tables ............. : OFF
--   Internal link size .............. : 2
--   Parentheses nest limit .......... : 250
--   Heap limit ...................... : 20000000
--   Match limit ..................... : 10000000
--   Match depth limit ............... : MATCH_LIMIT
--   Build shared libs ............... : OFF
--   Build static libs ............... : ON
--      with PIC enabled ............. : OFF
--   Build pcre2grep ................. : ON
--   Enable JIT in pcre2grep ......... : ON
--   Enable callouts in pcre2grep .... : ON
--   Enable callout fork in pcre2grep. : ON
--   Buffer size for pcre2grep ....... : 20480
--   Build tests (implies pcre2test .. : ON
--                and pcre2grep)
--   Link pcre2grep with libz ........ : ON
--   Link pcre2grep with libbz2 ...... : ON
--   Link pcre2test with libeditline . : Library not found
--   Link pcre2test with libreadline . : Library not found
--   Support Valgrind .................: OFF
--   Use %zu and %td ..................: AUTO
-- 
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2
2023-08-02 17:11:04.443 xcodebuild[66837:475330] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project PCRE2.xcodeproj build -target pcre2-8-static -parallelizeTargets -configuration Release -hideShellScriptEnvironment

User defaults from command line:
    HideShellScriptEnvironment = YES
    IDEPackageSupportToolchainOverrideForManifestLoading = com.apple.dt.toolchain.XcodeDefault
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    TOOLCHAINS = com.apple.dt.toolchain.XcodeDefault

Computing target dependency graph and provisioning inputs

Create build description
Build description signature: 15df61eb5aa2935e8d868ca5af027453
Build description path: /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2/build/XCBuildData/15df61eb5aa2935e8d868ca5af027453.xcbuilddata

note: Building targets in dependency order
note: Using global toolchain override 'Xcode Default'.
ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk /var/folders/27/v_6ltq3j14g_6nmxzd2cfngc0000gn/C/com.apple.DeveloperTools/14.3.1-14E300c/Xcode/14.3.1-14E300c/Xcode/SDKStatCaches.noindex/appletvsimulator16.4-20L489-com_apple_dt_toolchain_XcodeDefault_com_apple_dt_toolchain_XcodeDefault.sdkstatcache
    cd /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2/PCRE2.xcodeproj
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk -o /var/folders/27/v_6ltq3j14g_6nmxzd2cfngc0000gn/C/com.apple.DeveloperTools/14.3.1-14E300c/Xcode/14.3.1-14E300c/Xcode/SDKStatCaches.noindex/appletvsimulator16.4-20L489-com_apple_dt_toolchain_XcodeDefault_com_apple_dt_toolchain_XcodeDefault.sdkstatcache

note: Using global toolchain override 'Xcode Default'. (in target 'ZERO_CHECK' from project 'PCRE2')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'PCRE2')
PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2/build/PCRE2.build/Release-appletvsimulator/ZERO_CHECK.build/Script-B5F647AA9C15C9947C382A44.sh (in target 'ZERO_CHECK' from project 'PCRE2')
    cd /Users/kospaeth/Git/React-Native/reacttube/node_modules/@dr.pogodin/react-native-static-server/pcre2
    /bin/sh -c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2/build/PCRE2.build/Release-appletvsimulator/ZERO_CHECK.build/Script-B5F647AA9C15C9947C382A44.sh
make: `/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/pcre2/CMakeFiles/cmake.check_cache' is up to date.

note: Using global toolchain override 'Xcode Default'. (in target 'pcre2-8-static' from project 'PCRE2')
** BUILD SUCCEEDED **

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
    Reason given by package: The command
      "/opt/homebrew/bin/pkg-config" --libs-only-l --version
    failed with output:

    stderr: 
      Ignoring incompatible output option "--version"
    Must specify package names on the command line
    result: 
1

-- found pcre2-config: /opt/homebrew/bin/pcre2-config
-- found pcre2 at: LDFLAGS: -L/opt/homebrew/Cellar/pcre2/10.42/lib -lpcre2-8 CFLAGS: -I/opt/homebrew/Cellar/pcre2/10.42/include
adding property to lighttpd-angel COMPILE_FLAGS: -DSBIN_DIR=\"/usr/local/sbin\"
adding property to lighttpd COMPILE_FLAGS: -I/opt/homebrew/Cellar/pcre2/10.42/include
adding property to test_common COMPILE_FLAGS: -I/opt/homebrew/Cellar/pcre2/10.42/include
adding property to test_configfile COMPILE_FLAGS: -I/opt/homebrew/Cellar/pcre2/10.42/include
adding property to test_mod COMPILE_FLAGS: -I/opt/homebrew/Cellar/pcre2/10.42/include
-- Configuring done (1.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build
2023-08-02 17:11:05.569 xcodebuild[66864:475566] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project rn-static-server.xcodeproj build -target lighttpd -parallelizeTargets -configuration Debug -hideShellScriptEnvironment

User defaults from command line:
    HideShellScriptEnvironment = YES
    IDEPackageSupportToolchainOverrideForManifestLoading = com.apple.dt.toolchain.XcodeDefault
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    TOOLCHAINS = com.apple.dt.toolchain.XcodeDefault

Computing target dependency graph and provisioning inputs

Create build description
Build description signature: a27c71be885f7aecb0bd7f6b3167df8a
Build description path: /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/build/XCBuildData/a27c71be885f7aecb0bd7f6b3167df8a.xcbuilddata

note: Building targets in dependency order
note: Using global toolchain override 'Xcode Default'.
ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk /var/folders/27/v_6ltq3j14g_6nmxzd2cfngc0000gn/C/com.apple.DeveloperTools/14.3.1-14E300c/Xcode/14.3.1-14E300c/Xcode/SDKStatCaches.noindex/appletvsimulator16.4-20L489-com_apple_dt_toolchain_XcodeDefault_com_apple_dt_toolchain_XcodeDefault.sdkstatcache
    cd /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/rn-static-server.xcodeproj
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator16.4.sdk -o /var/folders/27/v_6ltq3j14g_6nmxzd2cfngc0000gn/C/com.apple.DeveloperTools/14.3.1-14E300c/Xcode/14.3.1-14E300c/Xcode/SDKStatCaches.noindex/appletvsimulator16.4-20L489-com_apple_dt_toolchain_XcodeDefault_com_apple_dt_toolchain_XcodeDefault.sdkstatcache

PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/build/rn-static-server.build/Debug-appletvsimulator/ZERO_CHECK.build/Script-3E0FAC5FDEE9EAC83CBF9F60.sh (in target 'ZERO_CHECK' from project 'rn-static-server')
    cd /Users/kospaeth/Git/React-Native/reacttube/node_modules/@dr.pogodin/react-native-static-server
    /bin/sh -c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/build/rn-static-server.build/Debug-appletvsimulator/ZERO_CHECK.build/Script-3E0FAC5FDEE9EAC83CBF9F60.sh
make: `/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/CMakeFiles/cmake.check_cache' is up to date.

note: Using global toolchain override 'Xcode Default'. (in target 'lighttpd' from project 'rn-static-server')
PhaseScriptExecution Generate\ lighttpd1.4/build/configparser.c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/build/lighttpd.build/Debug-appletvsimulator/Script-AD7322D8868FF30A73A057B6.sh (in target 'lighttpd' from project 'rn-static-server')
    cd /Users/kospaeth/Git/React-Native/reacttube/node_modules/@dr.pogodin/react-native-static-server
    /bin/sh -c /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/build/lighttpd.build/Debug-appletvsimulator/Script-AD7322D8868FF30A73A057B6.sh
dyld[66879]: DYLD_ROOT_PATH not set for simulator program
/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/build/lighttpd.build/Debug-appletvsimulator/Script-AD7322D8868FF30A73A057B6.sh: line 6: 66879 Abort trap: 6           /Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/lighttpd1.4/build/lemon -q -d/Users/kospaeth/Library/Developer/Xcode/DerivedData/reacttube-hgsexrtoqqlvicagqjdwgynumuyy/Build/Intermediates.noindex/Pods.build/Debug-appletvsimulator/dr-pogodin-react-native-static-server-tvOS.build/lighttpd1.4/build -T/Users/kospaeth/Git/React-Native/reacttube/node_modules/@dr.pogodin/react-native-static-server/lighttpd1.4/src/lempar.c /Users/kospaeth/Git/React-Native/reacttube/node_modules/@dr.pogodin/react-native-static-server/lighttpd1.4/src/configparser.y
Command PhaseScriptExecution failed with a nonzero exit code
Duell10111 commented 1 year ago

Maybe the error is the line: dyld[72498]: DYLD_ROOT_PATH not set for simulator program

birdofpreyru commented 1 year ago

Yeah, it reads like the linker really misses this flag / environmental variable / whatever it is. Can’t help just looking at logs. Though, it got past the pcre2 build - already good :)

gstrauss commented 1 year ago

@birdofpreyru you may want to look into running the lemon parser on configparser.y and including the build artifacts with your source distribution. (Also, each time you update the source from lighttpd, be sure to regenerate those build artifacts.) Then, you can avoid some of the challenges of building the lemon parser on the build platform to generate the build artifacts which are then compiled for the target platform. If you include those build artifacts with your source, you might also have to patch lighttpd CMakeLists.txt to remove/change the dependency on configparser.y which might trigger regeneration of those artifacts. Likewise, 'clean' rules might need to be modified.

Duell10111 commented 1 year ago

Yeah, it reads like the linker really misses this flag / environmental variable / whatever it is. Can’t help just looking at logs. Though, it got past the pcre2 build - already good :)

Hmm okay, I pushed my library version I used into a feature branch in my fork, if you want to reproduce it sometime. πŸ˜… https://github.com/Duell10111/react-native-static-server/tree/tvos

Duell10111 commented 1 year ago

Could the error be related to the error message:

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
    Reason given by package: The command
      "/opt/homebrew/bin/pkg-config" --libs-only-l --version
    failed with output:

    stderr: 
      Ignoring incompatible output option "--version"
    Must specify package names on the command line
    result: 
1
birdofpreyru commented 1 year ago

Probably... here it also complains that some variable is missing in the environment... as I said, that's rapidly went into a zone where I can't help just looking at the logs, and right now I don't have time to try troubleshoot it myself — I'm busy with another project. As I said, I'll have a look at building for tvOS when I do the next round of updates for this library, maybe in a week or few; if you don't figure it out yourself by then.

Duell10111 commented 1 year ago

Yeah no problem, I only try to understand it myself, as I am not using cmake etc. regulary. πŸ˜„ It was just a thought. πŸ™‚

birdofpreyru commented 1 year ago

Ok, I had a brief look at how to build RN apps for tvOS. If I just enable tvOS in Example app project, and try to build it, the build fails right away. Then from documentation I figured out I probably should use this: https://github.com/react-native-tvos/react-native-tvos to setup a separate Example app for tvOS... at this point it already seems as too much hustle for me to take on for free (at least at the current moment), and without a need for any projects I personally have in sight. So, I'll put it on hold, until you, and/or somebody else comes up with funds to sponsor the effort of supporting tvOS; or I'll get some tvOS project myself and need it (does not feel likely in the foreseen future); or I have nothing else to do (very highly unlikely).

Duell10111 commented 1 year ago

Okay, sad to hear that πŸ₯², I added a tvOS example app in my fork (https://github.com/Duell10111/react-native-static-server/tree/tvos/exampletvOS) (tvOS runnable with yarn iosTV). If anyone else knows a solution to fix the c compiling for tvOS.