Open
Description
Git commit
$git rev-parse HEAD 43ed389
Operating systems
Mac
GGML backends
Metal
Problem description & steps to reproduce
ios swift xcode build error when upgrade to
Before the upgrade, the code compiled successfully. After the upgrade, it throws a compilation error: "Cannot find type 'xxx' in scope."

First Bad Commit
Relevant log output
/ios/llama.cpp.swift/LibLlama.swift:8:39 Cannot find type 'llama_batch' in scope
/ios/llama.cpp.swift/LibLlama.swift:12:37 Cannot find type 'llama_batch' in scope
/ios/llama.cpp.swift/LibLlama.swift:12:56 Cannot find type 'llama_token' in scope
/ios/llama.cpp.swift/LibLlama.swift:12:76 Cannot find type 'llama_pos' in scope
/ios/llama.cpp.swift/LibLlama.swift:12:99 Cannot find type 'llama_seq_id' in scope
/ios/llama.cpp.swift/LibLlama.swift:27:48 Cannot find type 'llama_sampler' in scope
/ios/llama.cpp.swift/LibLlama.swift:28:24 Cannot find type 'llama_batch' in scope
/ios/llama.cpp.swift/LibLlama.swift:29:31 Cannot find type 'llama_token' in scope
/ios/llama.cpp.swift/LibLlama.swift:44:22 Cannot find 'llama_batch_init' in scope
/ios/llama.cpp.swift/LibLlama.swift:46:23 Cannot find 'llama_sampler_chain_default_params' in scope
/ios/llama.cpp.swift/LibLlama.swift:47:25 Cannot find 'llama_sampler_chain_init' in scope
/ios/llama.cpp.swift/LibLlama.swift:48:9 Cannot find 'llama_sampler_chain_add' in scope
/ios/llama.cpp.swift/LibLlama.swift:48:48 Cannot find 'llama_sampler_init_temp' in scope
/ios/llama.cpp.swift/LibLlama.swift:49:9 Cannot find 'llama_sampler_chain_add' in scope
/ios/llama.cpp.swift/LibLlama.swift:49:48 Cannot find 'llama_sampler_init_dist' in scope
/ios/llama.cpp.swift/LibLlama.swift:53:9 Cannot find 'llama_sampler_free' in scope
/ios/llama.cpp.swift/LibLlama.swift:54:9 Cannot find 'llama_batch_free' in scope
/ios/llama.cpp.swift/LibLlama.swift:55:9 Cannot find 'llama_free' in scope
/ios/llama.cpp.swift/LibLlama.swift:56:9 Cannot find 'llama_free_model' in scope
/ios/llama.cpp.swift/LibLlama.swift:57:9 Cannot find 'llama_backend_free' in scope
/ios/llama.cpp.swift/LibLlama.swift:61:9 Cannot find 'llama_backend_init' in scope
/ios/llama.cpp.swift/LibLlama.swift:62:28 Cannot find 'llama_model_default_params' in scope
/ios/llama.cpp.swift/LibLlama.swift:68:21 Cannot find 'llama_load_model_from_file' in scope
/ios/llama.cpp.swift/LibLlama.swift:77:26 Cannot find 'llama_context_default_params' in scope
/ios/llama.cpp.swift/LibLlama.swift:82:23 Cannot find 'llama_new_context_with_model' in scope
/ios/llama.cpp.swift/LibLlama.swift:100:22 Cannot find 'llama_model_desc' in scope
/ios/llama.cpp.swift/LibLlama.swift:121:21 Cannot find 'llama_n_ctx' in scope
/ios/llama.cpp.swift/LibLlama.swift:142:12 Cannot find 'llama_decode' in scope
/ios/llama.cpp.swift/LibLlama.swift:150:27 Cannot find type 'llama_token' in scope
/ios/llama.cpp.swift/LibLlama.swift:152:24 Cannot find 'llama_sampler_sample' in scope
/ios/llama.cpp.swift/LibLlama.swift:154:12 Cannot find 'llama_token_is_eog' in scope
/ios/llama.cpp.swift/LibLlama.swift:185:12 Cannot find 'llama_decode' in scope
/ios/llama.cpp.swift/LibLlama.swift:211:13 Cannot find 'llama_kv_cache_clear' in scope
/ios/llama.cpp.swift/LibLlama.swift:213:30 Cannot find 'ggml_time_us' in scope
/ios/llama.cpp.swift/LibLlama.swift:215:16 Cannot find 'llama_decode' in scope
/ios/llama.cpp.swift/LibLlama.swift:218:13 Cannot find 'llama_synchronize' in scope
/ios/llama.cpp.swift/LibLlama.swift:220:28 Cannot find 'ggml_time_us' in scope
/ios/llama.cpp.swift/LibLlama.swift:224:13 Cannot find 'llama_kv_cache_clear' in scope
/ios/llama.cpp.swift/LibLlama.swift:226:30 Cannot find 'ggml_time_us' in scope
/ios/llama.cpp.swift/LibLlama.swift:235:20 Cannot find 'llama_decode' in scope
/ios/llama.cpp.swift/LibLlama.swift:238:17 Cannot find 'llama_synchronize' in scope
/ios/llama.cpp.swift/LibLlama.swift:241:28 Cannot find 'ggml_time_us' in scope
/ios/llama.cpp.swift/LibLlama.swift:243:13 Cannot find 'llama_kv_cache_clear' in scope
/ios/llama.cpp.swift/LibLlama.swift:245:24 No exact matches in call to initializer
/ios/llama.cpp.swift/LibLlama.swift:246:24 No exact matches in call to initializer
/ios/llama.cpp.swift/LibLlama.swift:254:32 Cannot convert value of type 'Duration' to expected argument type 'Double'
/ios/llama.cpp.swift/LibLlama.swift:255:32 Cannot convert value of type 'Duration' to expected argument type 'Double'
/ios/llama.cpp.swift/LibLlama.swift:272:64 Cannot find 'llama_model_size' in scope
/ios/llama.cpp.swift/LibLlama.swift:273:62 Cannot find 'llama_model_n_params' in scope
/ios/llama.cpp.swift/LibLlama.swift:293:9 Cannot find 'llama_kv_cache_clear' in scope
/ios/llama.cpp.swift/LibLlama.swift:296:60 Cannot find type 'llama_token' in scope
/ios/llama.cpp.swift/LibLlama.swift:299:43 Cannot find type 'llama_token' in scope
/ios/llama.cpp.swift/LibLlama.swift:300:26 Cannot find 'llama_tokenize' in scope
/ios/llama.cpp.swift/LibLlama.swift:302:27 Cannot find type 'llama_token' in scope
/ios/llama.cpp.swift/LibLlama.swift:313:40 Cannot find type 'llama_token' in scope
/ios/llama.cpp.swift/LibLlama.swift:319:23 Cannot find 'llama_token_to_piece' in scope
/ios/llama.cpp.swift/LibLlama.swift:327:30 Cannot find 'llama_token_to_piece' in scope
/ios/llama.cpp.swift/LibLlama.swift:328:33 Generic parameter 'Element' could not be inferred
~/Library/Developer/Xcode/DerivedData/Runner-efnwjojzxwrmmpfdjskgbtmftvem/SourcePackages/checkouts/llama.cpp/Sources/llama/llama.h
~/Library/Developer/Xcode/DerivedData/Runner-efnwjojzxwrmmpfdjskgbtmftvem/SourcePackages/checkouts/llama.cpp/Sources/llama/llama.h:3:10 'llama.h' file not found with <angled> include; use "quotes" instead