Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Mach-O Linker (Id) Error Linker command failed with exit code 1 #175

Closed
iSamuelBarney opened this issue Dec 8, 2016 · 2 comments
Closed

Comments

@iSamuelBarney
Copy link

Ld /Users/---/Library/Developer/Xcode/DerivedData/---/Build/Intermediates/---.build/Release-iphoneos/snowflakeTests.build/Objects-normal/arm64/snowflakeTests normal arm64
cd /Volumes/LaCie/---/snowflake/ios
export IPHONEOS_DEPLOYMENT_TARGET=8.2
export PATH=---

ld: file not found: /Users/---/Library/Developer/Xcode/DerivedData/---/Build/Products/Release-iphoneos/snowflake.app/snowflake
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have gone through like 10 different build fail errors and fixed all but this one. How do I build snowflake from xcode successfully to run on a connected iphone? Seems like maybe something simple I'm missing but I have no idea.

@bartonhammond
Copy link
Owner

You might want to consider doing this through the Apple process supported by Fastlane which is working in Snowflake.

You would have to install and setup Fastlane for your Mac which would get your Apple ID and Bundler ID. I assume you have a Developers Account w/ Apple.

Then you would use the Match to establish your Certs on a private GitHub repository.

Look at the fastlane/Fastfile and you will see the following section which is the fastlane ios beta:

lane :beta do
    match(type: "appstore") # more information: https://codesigning.guide
    gym(scheme: "snowflake",
        project: "./ios/snowflake.xcodeproj"
        ) # Build your app - more options available
    pilot

    # sh "your_script.sh"
    # You can also use other beta testing services here (run `fastlane actions`)
  end

When you run fastlane ios beta the above code will pull in your certs from your private repo w/ match, build the app with gym and deploy it to Testflight via pilot.

I had a lot of trouble trying to do all this manually and when I converted it to Fastlane it went smooth as butter.

You will then use iTunesConnect and then within My Apps you will see your app ready for install either for internal or external users.

I realize it's a little overwhelming, at least for me, to start using the Apple eco system for installing an app but believe me, once you get the Fastlane script working, it's a fantastic time saver.

@iSamuelBarney
Copy link
Author

I will give it a shot thanks @bartonhammond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants