Linker Command Failed

Discussion in 'How Can I...?' started by DingDong118, Jan 28, 2017.

  1. DingDong118

    DingDong118 Boxer

    Joined:
    Aug 24, 2016
    Messages:
    24
    Likes Received:
    0
    I'm currently using the BuildBox with Xcode 8 and I keep getting this error message:

    linker command failed with exit code 1 (use -v to see invocation)

    Anyone figured out the solution?
     
  2. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    I am facing this problem with BB3 and Xcode 10 , did you find a solution for your problem ?
     
  3. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    It's a library problem, you need to send a screenshot for more details.

     
  4. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    I am going crazy over it, hope you could help me out.
    If you could tell me what all screenshots do you need.
    Also on a side note another error is being shown ads/PTPAdcontrollerfile.h not found , when I am trying to use MoPub mediation as mentioned in the article written by Buildbox team. It is happening swiftly in BB2 exported but causing this error in BB3 exported project.
    Article :- (http://help.buildbox.com/advertising-and-sdks/using-the-3rd-party-api-mopub-example)
     
  5. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    This is the screenshot for the problem, tell me if you need anymore screenshots.
     

    Attached Files:

  6. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    @itzonator it is saying - F path ' BBPlayer/libs.ads' is not a directory.
    Any way of correcting this ?
     
  7. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    Another screenshot that might be of some help to you.
    This problem never occurred with BB2 exported files but this is the first time I am exporting BB3 file and this problem is coming .
     

    Attached Files:

  8. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Check your directory structure. I see in your attached document that is not able to find the directory "ads". Make sure that you have your directory name properly. Apparently "libs/ads" is not there, but your Xcode is being told to use files within those directories and Xcode can not find it.
    Do a screen shot of your Xcode directory structure, this will help me see the issue.
     
  9. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    I am new to this , I don't know what a directory is.
    It is the files on the left side of the screen under BB Player.
    And you are suggesting to change the name of a file am I right ?
     
  10. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    So do you want the screenshot of the libs folder ?
     
  11. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    The directories are what holds your files. So if you have a directory named "libs" then inside that name "libs" are files, directories hold files. So code is looking for a directory called "libs/ads". So you have one directory called "libs" and inside that directory you have another directory called "ads" and inside that directory there are files and it appears that within that directory you have your MoPub libraries. Xcode can not find it because maybe you have the directories named incorrectly. The directory name must match exactly, upper case and lowercase must match exactly.
    Make sense?
     
  12. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    When I go to the libs folder in the exported iOS folder I see a file named ads. I am attaching screenshot for your reference and another screenshot that might help you.
    If you need any other screenshot pls tell me
     

    Attached Files:

  13. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Yes attach a screenshot
     
  14. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    The screenshot shows that "ads" is not a directory, it looks like it is a file. Xcode is searching for that directory and it thinks your MoPub is inside that directory, but when Xcode searches it finds that "ads" is actually a file, not a directory, Hence this is the reason for the error.
     
  15. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    I didn't rename anything by the way.
    I believe there is some problem with iOS export modules in BB3.
    In my BB2 exported folder when I open libs and then ads I see something else. ( Attaching it as a screenshot )
    Do you think copying the same and replacing it in BB3 folder would solve the problem ?
     

    Attached Files:

  16. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    So what could be a possible solution for this ? Do you have any idea ?
    Any help would be appreciated, I am going mad over this for a couple of days.
    Thanks in advance for taking out time to help.
     
  17. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    I am experiencing several problem with my iOS exporting which others are not.
    My iOS folder size is too large (600 mb ) for a game in which I have not used many assets and I have only 1 atlases that too only 1/4 occupied by assets. Then this ads is a file and not a directory. And some other little problems.
    Do you have a soltion for this ?
     
  18. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Copying those over will not be your solution for BB3.
    Basically "ads" needs created as a directory, which you would do outside of Xcode. Then within that directory you place you MoPub frameworks.
    It looks like something went wrong when MoPub was added to your project. I personally have never used MoPub, but I can see by your screenshot that code thinks the frameworks for MoPub is inside a directory called "ads" and for some reason instead of a directory named "ads" you have a file called "ads" and of course the moPub frameworks can not be placed within a file.
    The error is caused because Xcode has been told to find the frameworks inside that directory. Something went wrong with your MoPub installation and Xcode can not find it to link to it.
     
  19. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Ok. What version of Xcode are you using?
    This sounds like a strange issue related to Xcode, because there is no way your file should be that large.
     
  20. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    I am using Xcdoe 10 and BB3.
    By file size I mean the size of the exported iOS folder that we get
     

Share This Page