Search Unity

Firebase 3.0.1 iOS and Unity Cloud Build

Discussion in 'Unity Build Automation' started by LeandroGL, Mar 28, 2017.

  1. LeandroGL

    LeandroGL

    Joined:
    Mar 24, 2017
    Posts:
    5
    I've been trying to make iOS to build in unity cloud build, and it gives me error of not defined stuff. The .a are added on the project, and commited to the repository, but still it shows these errors below. Anyone know how to make firebase 3.0.1 runs on unity cloud build?

    The android version is buidling okay, the target is set to unity 5.5.2f1 and xcode 8

    Code (Boo):
    1. 12345:        [xcode] Undefined symbols for architecture arm64:
    2. 12346:        [xcode]   "_OBJC_CLASS_$_FIRInstanceID", referenced from:
    3. 12347:        [xcode]       objc-class-ref in libMessaging.a(messaging_0d72481c6b9f9d4c5456dcb81aa103f1.o)
    4. 12348:        [xcode]   "_kFIRInstanceIDTokenRefreshNotification", referenced from:
    5. 12349:        [xcode]       ____ZN8firebase9messaging17NotifyListenerSetEPNS0_8ListenerE_block_invoke in libMessaging.a(messaging_0d72481c6b9f9d4c5456dcb81aa103f1.o)
    6. 12350:        [xcode]   "_OBJC_CLASS_$_FIRMessaging", referenced from:
    7. 12351:        [xcode]       objc-class-ref in libMessaging.a(messaging_0d72481c6b9f9d4c5456dcb81aa103f1.o)
    8. 12352:        [xcode]   "_OBJC_CLASS_$_FIRApp", referenced from:
    9. 12353:        [xcode]       objc-class-ref in libApp.a(app_ios_c76c7d869e568a9b561ea55e25a7dcc0.o)
    10. 12354:        [xcode]   "_OBJC_CLASS_$_FIROptions", referenced from:
    11. 12355:        [xcode]       objc-class-ref in libApp.a(app_ios_c76c7d869e568a9b561ea55e25a7dcc0.o)
    12. 12356:        [xcode] ld: symbol(s) not found for architecture arm64
    13. 12357:        [xcode] clang: error: linker command failed with exit code 1 (use -v to see invocation)
    14. 12358:        [xcode] ** ARCHIVE FAILED **
     
  2. FlyingKiwi

    FlyingKiwi

    Joined:
    Jun 14, 2013
    Posts:
    12
    I had the same errors. After alot of testing different stuff and adding several frameworks and compiler settings through [PostProcessBuild] function i got it to compile in the cloud, but as soon as i try to start Firebase Cloud Messaging, the iOS App crashes without a usefull error. Still looking for a solution
     
  3. LeandroGL

    LeandroGL

    Joined:
    Mar 24, 2017
    Posts:
    5
    I was going to try this step of adding stuff manually, but sqllite depedency is missing now, guess it won't fix anything going manual doing post process if it crashes afterwards :/

    It seems the only problem is the line of pods not running on the AppDeps and MesagingDeps on Unity Cloud Build, I really don´t know how some people made it work flawlesly
     
  4. MetaDOS

    MetaDOS

    Joined:
    Nov 10, 2013
    Posts:
    157
    Hi. I have the same issue. Any one has solution so far?
     
  5. marosko

    marosko

    Joined:
    Sep 28, 2014
    Posts:
    3
  6. LeandroGL

    LeandroGL

    Joined:
    Mar 24, 2017
    Posts:
    5
    That´t not really a solution for those who doens't have a mac to compile. I think the solution would be firebase creating a package that didn't neeed cocoapods to integrate on unity, or unity cloud build make cocoapods run on the build cloud.
     
  7. marosko

    marosko

    Joined:
    Sep 28, 2014
    Posts:
    3
  8. iamsupertommy

    iamsupertommy

    Joined:
    Mar 13, 2017
    Posts:
    1
  9. LeandroGL

    LeandroGL

    Joined:
    Mar 24, 2017
    Posts:
    5
    Thank you @marosko and @iamsupertommy . I got it working.
    Just a quick tip for next people who try, set the plist file to the root of project, before the assets folder, or just change the path in the CopyFileOrDirectory relative with the place you put the plist file.
     
  10. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    Hi, you manage have authentication on it? how? can you teach me? still 6 days stock in authentication issue in cloud build