Error "library 'GameAssembly' not found" in Link UnityFramework (arm64) step

Hi, I do not know the page-place where I asked my question is correct but this is my first question. Please be understanding. I am new in iOS development and I want to build my game for iOS (I built for android maybe a hundred times, there was no problem). I have a MacBook Air with M1, my unity version is 2022.3.37f1, my Xcode version is 15.4. I can build for simulator, there is no problem but when I try to get an archive, build for “Any iOS Device” (I tried with real device, nothing changed), I have problems. After building in unity, I only changed base sdk, supported platforms and checks which is named “based on dependency analysis” in run script phases. These changes fixed other errors. But in Link UnitFramework step, I am getting game assembly not found error. How can I fix it? Here is the log (I f you want more specifics, feel free to ask):

Ld /Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/UnityFramework.framework/UnityFramework normal (in target 'UnityFramework' from project 'Unity-iPhone')
    cd /Users/ahmethakanyildiz/Desktop/tt_v22
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target arm64-apple-ios15.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -Os -L/Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/EagerLinkingTBDs/Release-iphoneos -L/Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk/usr/lib/swift -L/Users/ahmethakanyildiz/Desktop/tt_v22/Libraries -L/Users/ahmethakanyildiz/Desktop/tt_v22/Libraries/Plugins/iOS -F/Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/EagerLinkingTBDs/Release-iphoneos -F/Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -F/Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/Google-Mobile-Ads-SDK -F/Users/ahmethakanyildiz/Desktop/tt_v22/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework -F/Users/ahmethakanyildiz/Desktop/tt_v22/Pods/GoogleUserMessagingPlatform/Frameworks/Release -F/Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/Google-Mobile-Ads-SDK -F/Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/GoogleUserMessagingPlatform -filelist /Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework.LinkFileList -install_name @rpath/UnityFramework.framework/UnityFramework -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -map -Xlinker /Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/UnityFramework-LinkMap-normal-arm64.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_lto.o -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework.swiftmodule -ObjC -lsqlite3 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework GoogleMobileAds -framework Google_Mobile_Ads_SDK -framework JavaScriptCore -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework Network -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UserMessagingPlatform -framework WebKit -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -weak_framework CoreMotion -weak-lSystem -Wl,-undefined,dynamic_lookup,-all_load -Wl,-exported_symbol,_il2cpp_\* -framework Metal -framework Security -framework MediaToolbox -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework AVKit -framework CFNetwork -framework CoreGraphics -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework OpenAL -framework QuartzCore -framework SystemConfiguration -framework UIKit -lGameAssembly -liconv.2 /Users/ahmethakanyildiz/Desktop/tt_v22/Libraries/Plugins/iOS/unity-plugin-library.a -liPhone-lib -lil2cpp /Users/ahmethakanyildiz/Desktop/tt_v22/Libraries/baselib.a -weak_framework GameController -framework Pods_UnityFramework -Xlinker -dependency_info -Xlinker /Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_dependency_info.dat -o /Users/ahmethakanyildiz/Library/Developer/Xcode/DerivedData/Unity-iPhone-gkaxkatfjubirbaqrpmwwnnkpxfg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/UnityFramework.framework/UnityFramework

ld: warning: -undefined dynamic_lookup is deprecated on iOS
ld: warning: -undefined dynamic_lookup is deprecated on iOS
ld: library 'GameAssembly' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

GameAssembly is a separate target in Xcode project. Maybe it failed to build or somehow the project is messed up. Check the full build log.