Search Unity

Bug iOS Build Failing - Dummy.CPP

Discussion in 'iOS and tvOS' started by sherkt1, Feb 27, 2024.

  1. sherkt1

    sherkt1

    Joined:
    Jun 4, 2021
    Posts:
    2
    As a preface, there is another thread about building for android with the same issue. I re-installed Unity Hub and Unity. I am building my project for iOS, I open up xcode and get:

    Code (CSharp):
    1.  
    2. Showing All Messages
    3. Prepare packages
    4. Prepare build
    5. ComputeTargetDependencyGraph
    6.  
    7. note: Building targets in dependency order
    8. note: Target dependency graph (3 targets)
    9.     Target 'Unity-iPhone' in project 'Unity-iPhone'
    10.         ➜ Explicit dependency on target 'UnityFramework' in project 'Unity-iPhone'
    11.     Target 'UnityFramework' in project 'Unity-iPhone'
    12.         ➜ Explicit dependency on target 'GameAssembly' in project 'Unity-iPhone'
    13.     Target 'GameAssembly' in project 'Unity-iPhone' (no dependencies)
    14.  
    15. Building targets in dependency order
    16.  
    17. Target dependency graph (3 targets)
    18.  
    19. GatherProvisioningInputs
    20.  
    21. CreateBuildDescription
    22.  
    23. Build description signature: a2caf19361f888a942d0eb087f14088c
    24. Build description path: /Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/XCBuildData/a2caf19361f888a942d0eb087f14088c.xcbuilddata
    25.  
    26. ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk /Users/sherk/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.2-21C52-884b7f60ac6761a492c03f282b824eb9.sdkstatcache
    27.     cd /Users/sherk/Desktop/iosBluetooth/Unity-iPhone.xcodeproj
    28.     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk -o /Users/sherk/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.2-21C52-884b7f60ac6761a492c03f282b824eb9.sdkstatcache
    29.  
    30. Build target GameAssembly
    31. Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase.
    32.  
    33. PhaseScriptExecution Run\ Script /Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/GameAssembly.build/Script-C62A2A42F32E085EF849CF0B.sh (in target 'GameAssembly' from project 'Unity-iPhone'"@\(\#\)PROGRAM:GameAssembly\ \ PROJECT:Unity-iPhone-\"
    34.    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES\=NO
    35.    export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode
    36.    export XCODE_PRODUCT_BUILD_VERSION\=15C500b
    37.    export XCODE_VERSION_ACTUAL\=1520
    38.    export XCODE_VERSION_MAJOR\=1500
    39.    export XCODE_VERSION_MINOR\=1520
    40.    export XPCSERVICES_FOLDER_PATH\=/XPCServices
    41.    export YACC\=yacc
    42.    export arch\=undefined_arch
    43.    export variant\=normal
    44.    /bin/sh -c /Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/GameAssembly.build/Script-C62A2A42F32E085EF849CF0B.sh
    45.  
    46. /Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/build/deploy_arm64/il2cpp --compile-cpp --platform=iOS --baselib-directory=/Users/sherk/Desktop/iosBluetooth/Libraries --additional-defines=IL2CPP_DEBUG=0 --dotnetprofile=unityaot-macos --profiler-report --print-command-line --external-lib-il2-cpp=/Users/sherk/Desktop/iosBluetooth/Libraries/libil2cpp.a --generatedcppdir=Il2CppOutputProject/Source/il2cppOutput --architecture=arm64 --outputpath=/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Products/ReleaseForRunning-iphoneos/libGameAssembly.a --cachedirectory=/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64 --configuration=Release
    47. Starting: /Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/build/deploy_arm64/bee_backend/mac-arm64/bee_backend --verbose --threads=8 --profile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/backend_profiler0.traceevents" --beedriver-listener --dagfile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/bee.dag" --continue-on-failure FinalProgram
    48. WorkingDir: /Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate
    49. ExitCode: 4 Duration: 0s68ms
    50. ExitCode: 0 Duration: 0s1ms
    51. Starting: /Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/build/deploy_arm64/bee_backend/mac-arm64/bee_backend --verbose --threads=8 --profile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/backend_profiler1.traceevents" --beedriver-listener --dagfile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/bee.dag" --continue-on-failure --dagfilejson="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/bee.dag.json" FinalProgram
    52. WorkingDir: /Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate
    53. ExitCode: 3 Duration: 0s118ms
    54. Build failed with 1 successful nodes and 1 failed ones
    55. Annotation: C_iOS_arm64 z7ln/75vchxpb1aba.o
    56. Cmdline: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -std=c++11 -fembed-bitcode -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk" -fexceptions -frtti -g -O3 -fno-strict-overflow -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DTARGET_ARM64 -DHAVE_BDWGC_GC -DIL2CPP_DEBUG=0 -DNDEBUG -I"." -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/pch" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/os/ClassLibraryPAL/brotli/include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Platforms/IOS/Include" -o "z7ln/75vchxpb1aba.o" -fcolor-diagnostics -stdlib=libc++ -arch arm64 -mios-version-min=10.12 -c -x c++ "/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp"
    57. ExitCode: 1
    58. Stdout:
    59. clang: error: no such file or directory: '/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp'
    60. clang: error: no input files
    61.  
    62. Error: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 1 successful nodes and 1 failed ones
    63. Annotation: C_iOS_arm64 z7ln/75vchxpb1aba.o
    64. Cmdline: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -std=c++11 -fembed-bitcode -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk" -fexceptions -frtti -g -O3 -fno-strict-overflow -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DTARGET_ARM64 -DHAVE_BDWGC_GC -DIL2CPP_DEBUG=0 -DNDEBUG -I"." -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/pch" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/os/ClassLibraryPAL/brotli/include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Platforms/IOS/Include" -o "z7ln/75vchxpb1aba.o" -fcolor-diagnostics -stdlib=libc++ -arch arm64 -mios-version-min=10.12 -c -x c++ "/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp"
    65. ExitCode: 1
    66. Stdout:
    67. clang: error: no such file or directory: '/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp'
    68. clang: error: no input files
    69.  
    70.   at il2cpp.Program.DoRun(TinyProfiler2 tinyProfiler, String[] args, RuntimePlatform platform, Il2CppCommandLineArguments il2CppCommandLineArguments, BuildingOptions buildingOptions, Boolean throwExceptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 319
    71.  
    72. /Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/build/deploy_arm64/il2cpp --compile-cpp --platform=iOS --baselib-directory=/Users/sherk/Desktop/iosBluetooth/Libraries --additional-defines=IL2CPP_DEBUG=0 --dotnetprofile=unityaot-macos --profiler-report --print-command-line --external-lib-il2-cpp=/Users/sherk/Desktop/iosBluetooth/Libraries/libil2cpp.a --generatedcppdir=Il2CppOutputProject/Source/il2cppOutput --architecture=arm64 --outputpath=/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Products/ReleaseForRunning-iphoneos/libGameAssembly.a --cachedirectory=/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64 --configuration=Release
    73.  
    74. Starting: /Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/build/deploy_arm64/bee_backend/mac-arm64/bee_backend --verbose --threads=8 --profile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/backend_profiler0.traceevents" --beedriver-listener --dagfile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/bee.dag" --continue-on-failure FinalProgram
    75.  
    76. WorkingDir: /Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate
    77.  
    78. ExitCode: 4 Duration: 0s68ms
    79.  
    80. ExitCode: 0 Duration: 0s1ms
    81.  
    82. Starting: /Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/build/deploy_arm64/bee_backend/mac-arm64/bee_backend --verbose --threads=8 --profile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/backend_profiler1.traceevents" --beedriver-listener --dagfile="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/bee.dag" --continue-on-failure --dagfilejson="/Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate/bee.dag.json" FinalProgram
    83.  
    84. WorkingDir: /Users/sherk/Library/Developer/Xcode/DerivedData/Unity-iPhone-gbvvusobshhvkpdxpnekdtovnznm/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/artifacts/arm64/buildstate
    85.  
    86. ExitCode: 3 Duration: 0s118ms
    87.  
    88. Build failed with 1 successful nodes and 1 failed ones
    89.  
    90. Annotation: C_iOS_arm64 z7ln/75vchxpb1aba.o
    91.  
    92. Cmdline: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -std=c++11 -fembed-bitcode -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk" -fexceptions -frtti -g -O3 -fno-strict-overflow -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DTARGET_ARM64 -DHAVE_BDWGC_GC -DIL2CPP_DEBUG=0 -DNDEBUG -I"." -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/pch" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/os/ClassLibraryPAL/brotli/include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Platforms/IOS/Include" -o "z7ln/75vchxpb1aba.o" -fcolor-diagnostics -stdlib=libc++ -arch arm64 -mios-version-min=10.12 -c -x c++ "/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp"
    93.  
    94. ExitCode: 1
    95.  
    96. Stdout:
    97.  
    98. /Users/sherk/Desktop/iosBluetooth/clang:1:1: no such file or directory: '/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp'
    99.  
    100.  
    101.  
    102. Error: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 1 successful nodes and 1 failed ones
    103.  
    104. Annotation: C_iOS_arm64 z7ln/75vchxpb1aba.o
    105.  
    106. Cmdline: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -std=c++11 -fembed-bitcode -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk" -fexceptions -frtti -g -O3 -fno-strict-overflow -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DTARGET_ARM64 -DHAVE_BDWGC_GC -DIL2CPP_DEBUG=0 -DNDEBUG -I"." -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/pch" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/libil2cpp/os/ClassLibraryPAL/brotli/include" -I"/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/IL2CPP/external/baselib/Platforms/IOS/Include" -o "z7ln/75vchxpb1aba.o" -fcolor-diagnostics -stdlib=libc++ -arch arm64 -mios-version-min=10.12 -c -x c++ "/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp"
    107.  
    108. ExitCode: 1
    109.  
    110. Stdout:
    111.  
    112. /Users/sherk/Desktop/iosBluetooth/clang:1:1: no input files
    113.  
    114. /Users/sherk/Desktop/iosBluetooth/clang:1:1: no such file or directory: '/Users/sherk/Desktop/iosBluetooth/Il2CppOutputProject/Source/il2cppOutput/dummy.cpp'
    115.  
    116.  
    117.  
    118.   at il2cpp.Program.DoRun(TinyProfiler2 tinyProfiler, String[] args, RuntimePlatform platform, Il2CppCommandLineArguments il2CppCommandLineArguments, BuildingOptions buildingOptions, Boolean throwExceptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 319
    119.  
    120. /Users/sherk/Desktop/iosBluetooth/clang:1:1: no input files
    121.  
    122.  
    123.  
    124. Activity Log Complete    2/26/24, 7:49 PM    3.8 seconds
    125.  
     

    Attached Files:

    snipercat9 likes this.
  2. leekm8474

    leekm8474

    Joined:
    Apr 2, 2024
    Posts:
    1
    Did you solve this issue?