Build iOS thành công nhưng không có file .xcworkspace

Vấn đề

Nguyên nhân

Giải pháp

  1. Sử dụng terminal cd tới folder build iOS (VD: cd /Users/admin/Unity/Gang2022/Builds/558/iOS)
  2. Chạy lệnh pod install để build lại file .xcworkspace
  3. Đọc, kiểm tra lỗi và tiếp tục xử lý
    • Lỗi AppLovinMediationGoogleAdapter không tương thích với Google-Mobile-Ads-SDK => Sửa phiên bản Google-Mobile-Ads-SDK trong file Podfile
    [!] CocoaPods could not find compatible versions for pod "Google-Mobile-Ads-SDK":
      In Podfile:
        AppLovinMediationGoogleAdapter (= 12.5.0.0) was resolved to 12.5.0.0, which depends on
          Google-Mobile-Ads-SDK (= 12.5.0)
    
        Google-Mobile-Ads-SDK (~> 11.13.0)
    
    Specs satisfying the `Google-Mobile-Ads-SDK (~> 11.13.0), Google-Mobile-Ads-SDK (= 12.5.0)` dependency were found, but they required a higher minimum deployment target.
    • Lỗi AppLovinMediationMyTargetAdapter yêu cầu phiên bản iOS tối thiểu cao hơn => trong Podfile sửa dòng platform :ios, 'iOS_version' hoặc thay đổi Target minimum iOS Version trong Player Settings
    [!] CocoaPods could not find compatible versions for pod "AppLovinMediationMyTargetAdapter":
    
      In Podfile:
        AppLovinMediationMyTargetAdapter (= 5.30.0.0)
    
    
    Specs satisfying the `AppLovinMediationMyTargetAdapter (= 5.30.0.0)` dependency were found, but they required a higher minimum deployment target.


  4. Nếu không còn lỗi và đã có file .xcworkspace thì có thể thực hiện archive trên file .xcworkspace này

Lưu ý

pod cache clean --all
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -f Podfile.lock

Revision #1
Created 2025-06-04 18:31:22 UTC by ThanhDV
Updated 2025-06-04 18:59:16 UTC by ThanhDV