Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    929
  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:
    929
    @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
     
    anh2cuti likes this.
  6. anh2cuti

    anh2cuti

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