Skip to content

"ld: framework 'hermes' not found" when running ./build_nativescript.sh --hermes #16

@shirakaba

Description

@shirakaba
./build_nativescript.sh --hermes


--------------------------------------------------------------------------------
--- 23:32:53 --- Building NativeScript for iphone simulators (multi-arch) 
--------------------------------------------------------------------------------

-- TARGET_PLATFORM = ios-sim
-- TARGET_ENGINE = hermes
-- ENABLE_JS_RUNTIME = TRUE
-- TARGET_PLATFORM = ios-sim
-- SDK = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk
-- FRAMEWORK = TRUE
-- LIBFFI_BUILD = iphonesimulator-universal
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project NativeScript.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration RelWithDebInfo -hideShellScriptEnvironment

User defaults from command line:
    HideShellScriptEnvironment = YES
    IDEPackageSupportUseBuiltinSCM = YES

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
    Target 'ALL_BUILD' in project 'NativeScript'
        ➜ Explicit dependency on target 'NativeScript' in project 'NativeScript'
        ➜ Explicit dependency on target 'ZERO_CHECK' in project 'NativeScript'
    Target 'NativeScript' in project 'NativeScript'
        ➜ Explicit dependency on target 'ZERO_CHECK' in project 'NativeScript'
    Target 'ZERO_CHECK' in project 'NativeScript' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x objective-c++ -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x c++ -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x objective-c++ -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x c++ -c /dev/null

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -x c -c /dev/null

Build description signature: ca74788c3dd8ad54ad74f735b1e7c8e9
Build description path: /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/XCBuildData/ca74788c3dd8ad54ad74f735b1e7c8e9.xcbuilddata
ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk /var/folders/0m/nf10bfxx6rgft8tn29fznymc0000gn/C/com.apple.DeveloperTools/16.2-16C5032a/Xcode/SDKStatCaches.noindex/iphonesimulator18.2-22C146-07b28473f605e47e75261259d3ef3b5a.sdkstatcache
    cd /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/NativeScript.xcodeproj
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -o /var/folders/0m/nf10bfxx6rgft8tn29fznymc0000gn/C/com.apple.DeveloperTools/16.2-16C5032a/Xcode/SDKStatCaches.noindex/iphonesimulator18.2-22C146-07b28473f605e47e75261259d3ef3b5a.sdkstatcache

PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/ZERO_CHECK.build/Script-59DC09A2553372DC3266CC8D.sh (in target 'ZERO_CHECK' from project 'NativeScript')
    cd /Users/jamie/Documents/git/napi-ios/NativeScript
    /bin/sh -c /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/ZERO_CHECK.build/Script-59DC09A2553372DC3266CC8D.sh
make: `/Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/CMakeFiles/cmake.check_cache' is up to date.

ProcessInfoPlistFile /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/RelWithDebInfo-iphonesimulator/NativeScript.framework/Info.plist /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/CMakeFiles/NativeScript.dir/Info.plist (in target 'NativeScript' from project 'NativeScript')
    cd /Users/jamie/Documents/git/napi-ios/NativeScript
    builtin-infoPlistUtility /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/CMakeFiles/NativeScript.dir/Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -format binary -platform iphonesimulator -o /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/RelWithDebInfo-iphonesimulator/NativeScript.framework/Info.plist
/Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/NativeScript.xcodeproj: warning: User-supplied CFBundleIdentifier value 'org.nativescript.runtime' in the Info.plist must be the same as the PRODUCT_BUNDLE_IDENTIFIER build setting value ''. (in target 'NativeScript' from project 'NativeScript')

CompileC /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/arm64/ada.o /Users/jamie/Documents/git/napi-ios/NativeScript/runtime/modules/url/ada/ada.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'NativeScript' from project 'NativeScript')
    cd /Users/jamie/Documents/git/napi-ios/NativeScript
    
    Using response file: /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp
    
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /var/folders/0m/nf10bfxx6rgft8tn29fznymc0000gn/C/com.apple.DeveloperTools/16.2-16C5032a/Xcode/SDKStatCaches.noindex/iphonesimulator18.2-22C146-07b28473f605e47e75261259d3ef3b5a.sdkstatcache -fmessage-length\=159 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body @/Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -MMD -MT dependencies -MF /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/arm64/ada.d --serialize-diagnostics /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/arm64/ada.dia -c /Users/jamie/Documents/git/napi-ios/NativeScript/runtime/modules/url/ada/ada.cpp -o /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/arm64/ada.o

Ld /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/x86_64/Binary/NativeScript normal x86_64 (in target 'NativeScript' from project 'NativeScript')
    cd /Users/jamie/Documents/git/napi-ios/NativeScript
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target x86_64-apple-ios13.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk -O2 -L/Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/EagerLinkingTBDs/RelWithDebInfo-iphonesimulator -L/Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/RelWithDebInfo-iphonesimulator -L/Users/jamie/Documents/git/napi-ios/NativeScript/libffi/iphonesimulator-universal/RelWithDebInfo-iphonesimulator -L/Users/jamie/Documents/git/napi-ios/NativeScript/libffi/iphonesimulator-universal -F/Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/EagerLinkingTBDs/RelWithDebInfo-iphonesimulator -F/Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/RelWithDebInfo-iphonesimulator -filelist /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/x86_64/NativeScript.LinkFileList -install_name @rpath/NativeScript.framework/NativeScript -Xlinker -rpath -Xlinker /Users/jamie/Documents/git/napi-ios/NativeScript/libffi/iphonesimulator-universal -dead_strip -Xlinker -object_path_lto -Xlinker /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/x86_64/NativeScript_lto.o -Xlinker -objc_abi_version -Xlinker 2 -stdlib\=libc++ -fobjc-link-runtime -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/jamie/Documents/git/napi-ios/NativeScript/../Frameworks/hermes.xcframework/ios-arm64_x86_64-simulator -Wl,-F/Users/jamie/Documents/git/napi-ios/NativeScript/../Frameworks/hermes.xcframework/ios-arm64_x86_64-simulator -Wl -undefined dynamic_lookup -framework hermes -lffi -framework Foundation -framework UIKit -lobjc -Xlinker -no_adhoc_codesign -compatibility_version 0.1.0 -current_version 0.1.0 -Xlinker -dependency_info -Xlinker /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/x86_64/NativeScript_dependency_info.dat -o /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/x86_64/Binary/NativeScript
ld: warning: -undefined dynamic_lookup is deprecated on iOS-simulator
ld: warning: ignoring duplicate libraries: '-lobjc'
ld: warning: search path '/Users/jamie/Documents/git/napi-ios/NativeScript/libffi/iphonesimulator-universal/RelWithDebInfo-iphonesimulator' not found
ld: warning: search path '/Users/jamie/Documents/git/napi-ios/NativeScript/../Frameworks/hermes.xcframework/ios-arm64_x86_64-simulator' not found
ld: framework 'hermes' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'NativeScript')
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 'NativeScript')
** BUILD FAILED **


The following build commands failed:
        Ld /Users/jamie/Documents/git/napi-ios/dist/intermediates/ios-sim/build/NativeScript.build/RelWithDebInfo-iphonesimulator/Objects-normal/x86_64/Binary/NativeScript normal x86_64 (in target 'NativeScript' from project 'NativeScript')
(1 failure)
git/napi-ios 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions