Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When building for iOS simulator fails #73

Open
ramunasjurgilas opened this issue Aug 8, 2023 · 0 comments
Open

When building for iOS simulator fails #73

ramunasjurgilas opened this issue Aug 8, 2023 · 0 comments

Comments

@ramunasjurgilas
Copy link

ramunasjurgilas commented Aug 8, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant