Skip to content

When building for iOS simulator fails  #73

@ramunasjurgilas

Description

@ramunasjurgilas

Build for simulator is failing.

Xcode 14.3.1

Steps to reproduce:

  1. Just downloaded source code as zip.
  2. Opened using Xcode
  3. Build target changed to iOS (iPad Pro)
  4. build process failed with errors and warnings.

What is the way to build for simulator?

Warnings

ld: warning: in /Users/ramas/Downloads/TLSphinx-master-A/Sphinx/lib/pocketsphinx/libpocketsphinx.a(acmod.o), building for iOS Simulator, but linking in object file built for iOS, 'pocketsphinx'
ld: warning: in /Users/ramas/Downloads/TLSphinx-master-A/Sphinx/lib/sphinxbase/libsphinxad.a(ad_openal.o), building for iOS Simulator, but linking in object file built for iOS, 'sphinxad'
ld: warning: in /Users/ramas/Downloads/TLSphinx-master-A/Sphinx/lib/sphinxbase/libsphinxbase.a(bio.o), building for iOS Simulator, but linking in object file built for iOS, 'sphinxbase'
ld: warning: Could not find or use auto-linked library 'sphinxad'
ld: warning: Could not find or use auto-linked library 'sphinxbase'
ld: warning: Could not find or use auto-linked library 'pocketsphinx'

Errors

Undefined symbol: _cmd_ln_free_r

Undefined symbol: _cmd_ln_parse_r

Undefined symbol: _cmd_ln_set_str_r

Undefined symbol: _cmd_ln_str_r

Undefined symbol: _ps_add_word

Undefined symbol: _ps_args

Undefined symbol: _ps_end_utt

Undefined symbol: _ps_free

Undefined symbol: _ps_get_hyp

Undefined symbol: _ps_get_in_speech

Undefined symbol: _ps_init

Undefined symbol: _ps_process_raw

Undefined symbol: _ps_start_utt

Linker command failed with exit code 1 (use -v to see invocation)

One more error

Ld /Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Products/Debug-iphonesimulator/TLSphinxTests.xctest/TLSphinxTests normal (in target 'TLSphinxTests' from project 'TLSphinx')
    cd /Users/ramas/Downloads/TLSphinx-master-A
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios9.0-simulator -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -L/Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphonesimulator -L/Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Products/Debug-iphonesimulator -L/Users/ramas/Downloads/TLSphinx-master-A/Sphinx/lib/pocketsphinx -L/Users/ramas/Downloads/TLSphinx-master-A/Sphinx/lib/sphinxbase -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib -F/Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphonesimulator -F/Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Products/Debug-iphonesimulator -iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk/Developer/Library/Frameworks -filelist /Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Intermediates.noindex/TLSphinx.build/Debug-iphonesimulator/TLSphinxTests.build/Objects-normal/arm64/TLSphinxTests.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Intermediates.noindex/TLSphinx.build/Debug-iphonesimulator/TLSphinxTests.build/Objects-normal/arm64/TLSphinxTests_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Intermediates.noindex/TLSphinx.build/Debug-iphonesimulator/TLSphinxTests.build/Objects-normal/arm64/TLSphinxTests.swiftmodule -framework XCTest -framework TLSphinx -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Intermediates.noindex/TLSphinx.build/Debug-iphonesimulator/TLSphinxTests.build/Objects-normal/arm64/TLSphinxTests_dependency_info.dat -o /Users/ramas/Library/Developer/Xcode/DerivedData/TLSphinx-ermhokifspshriczqjafmhsdvefl/Build/Products/Debug-iphonesimulator/TLSphinxTests.xctest/TLSphinxTests

ld: framework not found TLSphinx
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Framework not found TLSphinx

Linker command failed with exit code 1 (use -v to see invocation)

image

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