question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failed on ios

See original GitHub issue

Hi Pepperoni team,

I might look dumb but i can’t get the starter kit to build on an iPhone. Everything works great into the simulator, but here’s logs when I try to build it on a real device :

ld: warning: directory not found for option '-L/Users/wt/Library/Developer/Xcode/DerivedData/test-gifqqwfpbaeomfhauvvrnvrqarmi/Build/Products/Debug-iphoneos/AFNetworking'
ld: warning: directory not found for option '-L/Users/wt/Library/Developer/Xcode/DerivedData/test-gifqqwfpbaeomfhauvvrnvrqarmi/Build/Products/Debug-iphoneos/CocoaLumberjack'
ld: warning: directory not found for option '-L/Users/wt/Library/Developer/Xcode/DerivedData/test-gifqqwfpbaeomfhauvvrnvrqarmi/Build/Products/Debug-iphoneos/Lock'
ld: warning: directory not found for option '-L/Users/wt/Library/Developer/Xcode/DerivedData/test-gifqqwfpbaeomfhauvvrnvrqarmi/Build/Products/Debug-iphoneos/Masonry'
ld: warning: directory not found for option '-L/Users/wt/Library/Developer/Xcode/DerivedData/test-gifqqwfpbaeomfhauvvrnvrqarmi/Build/Products/Debug-iphoneos/SimpleKeychain'
ld: warning: directory not found for option '-L/Users/wt/Library/Developer/Xcode/DerivedData/test-gifqqwfpbaeomfhauvvrnvrqarmi/Build/Products/Debug-iphoneos/TouchIDAuth'
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What am I missing ? I tried to re-run pod install, re-init project, nothing… Any ideas ?

Thanks for your help and your work on this kit !

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
HunterMeyercommented, Jun 12, 2016

Ok I figured it out. I was incorrectly opening the .xcodeproj file. Instead, I should be opening the .xcworkspace file. All is good.

0reactions
HunterMeyercommented, Jun 12, 2016

@WheelyWonka thanks. I’ve added the ios/Pods directory to the “Linked frameworks and libraries” section. However, build is failing:

Warning: skipping file '/my/path/pepperoni-app-kit/ios/Pods' (unexpected file type 'folder' in Frameworks & Libraries build phase)

Am I doing something wrong? Feels like I’ve missed something. Thanks for the help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Failed — but no reason! | Apple Developer Forums
Hi, I'm experiencing weird Xcode behavior. I'm getting "build failed" after some alterations to the code, but Xcode will NOT give me the...
Read more >
Xcode 4: Build Failed, No Issues - ios - Stack Overflow
I've been getting 'Build Failed' with no errors in the Issue navigator(only warnings). Report navigator, though, displayed errors correctly.
Read more >
Build failed on iOS device · Issue #9823 - GitHub
When I'm trying to build project for real device or open xcode project I get error. Reproduction. ns create app --react; cd app;...
Read more >
Oh dear! Build errors? - LoopDocs - GitHub Pages
Solution: Plug your iPhone into the computer and start Xcode . On your watch, look for a prompt that says "Trust this computer"....
Read more >
iOS build fail - KonyLogger.Framework error
Just proper clean your environment and enable native bindings for iOS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found