Search Unity

First time using Unity 2019.3. Need help when build to IOS

Discussion in 'iOS and tvOS' started by anh2cuti, May 17, 2020.

  1. anh2cuti

    anh2cuti

    Joined:
    Jul 13, 2017
    Posts:
    12
    This is my first update from 2019.2.21f to 2019.3.13f.
    When I build IOS, I look at the pod file, I see the difference is:
    target 'UnityFramework' instead of 'Unity-Iphone'.

    I still try to build it but when I use 'pod install' I get the following message:

    [!] The Podfile contains framework or static library targets (UnityFramework), for which the Podfile does not contain host targets (targets which embed the framework).
    If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).

    Will it affect my project? What can I do to not display this message?

    This is my pod file:

    target 'UnityFramework' do
    pod 'Crashlytics'
    pod 'Fabric'
    pod 'Firebase/Analytics'
    pod 'Firebase/Auth'
    pod 'Firebase/Core'
    pod 'Firebase/RemoteConfig'
    pod 'Google-Mobile-Ads-SDK'
    end
     
  2. anh2cuti

    anh2cuti

    Joined:
    Jul 13, 2017
    Posts:
    12
    can anyone help me?
     
  3. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,963
  4. anh2cuti

    anh2cuti

    Joined:
    Jul 13, 2017
    Posts:
    12
    Currently I have not found a solution and still hope someone helps me @Voxel-Busters
     
  5. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,963
    @anh2cuti
    Try adding the below lines to your pod file and run "pod install"

    target 'Unity-iPhone' do
    end

    This is how it looks finally

    Code (CSharp):
    1. target 'Unity-iPhone' do
    2. end
    3.  
    4. target 'UnityFramework' do
    5. pod 'Crashlytics'
    6. pod 'Fabric'
    7. pod 'Firebase/Analytics'
    8. pod 'Firebase/Auth'
    9. pod 'Firebase/Core'
    10. pod 'Firebase/RemoteConfig'
    11. pod 'Google-Mobile-Ads-SDK'
    12. end
     
    IvanRoyLoewen and anh2cuti like this.
  6. anh2cuti

    anh2cuti

    Joined:
    Jul 13, 2017
    Posts:
    12
    @Voxel-Busters Thank you very much.
     
  7. IvanRoyLoewen

    IvanRoyLoewen

    Joined:
    Apr 19, 2016
    Posts:
    3
    @Voxel-Busters I just purchased your new asset pack, which is amazing, and now you helped me solve this problem! Thanks.