1 duplicate symbol for architecture x86_64

前端 未结 4 2358
清歌不尽
清歌不尽 2021-02-20 13:55

I am not sure what I have done wrong.
I moved my project folder to another folder and copied the backup folder to desktop.
I tried to open the backup project and build

相关标签:
4条回答
  • 2021-02-20 14:12

    I have cloned your project from github, I found that the main.m file is repeated in SFITNESS and CERangeSlider You may delete one of them and your project will work.

    0 讨论(0)
  • 2021-02-20 14:24

    how to get derived data

    • Open Xcode.
    • Open Xcode preferences (Cmd + ,)
    • Select location option.
    • now you have scene, now click on the point as shown in below image.

    • your derived data is now opened (suggest you to add drive data in finder left menu). Delete whatever inside the drive data.

    • now delete your project from simulator.
    • clean and build your project.

    If you are still facing issues then let us know so that we can help accordingly.

    0 讨论(0)
  • 2021-02-20 14:26

    You need to add necessary framework to your project. Check all third party party framework and search its required framework for support. For e.g. if you add google analytic then you need to add CoreData , Foundation etc framework. There is some framework is missing for which third party framework needs.

    Or you can-

    1. Press "Cmd + Shift + K" or shift + cmd + alt + k to clean up, and quit Xcode.
    2. Delete the cache Run "rm -rf ~/Library/Developer/Xcode/DerivedData" in terminal

    3. Open the project and re-build it

    Linker command failed with exit code 1 - to solve this error press "Cmd + Shift + K" or shift + cmd + alt + k this will do the work for you. I also have this same issue but solved by using this line . Hope this will solve your problem.

    OUTPUT OF YOUR PROJECT -

    0 讨论(0)
  • 2021-02-20 14:31
    duplicate symbol _main
    

    You have two main.m files and the function main() is in conflict.

    Just delete the main.m under CERangeSlider and it should work.

    0 讨论(0)
提交回复
热议问题