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

Error to build iOS app on fresh clone #77

Closed
wujiang opened this issue Jul 12, 2016 · 23 comments
Closed

Error to build iOS app on fresh clone #77

wujiang opened this issue Jul 12, 2016 · 23 comments
Labels

Comments

@wujiang
Copy link

wujiang commented Jul 12, 2016

Might related to #25

Error:

=== BUILD TARGET PepperoniAppTemplate OF PROJECT PepperoniAppTemplate WITH CONFIGURATION Debug ===

Check dependencies

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock build/Build/Intermediates/PepperoniAppTemplate.build/Debug-iphonesimulator/PepperoniAppTemplate.build/Script-64ECB2A37DD1E0D254C2E832.sh
    cd /tmp/pepperoni-app-kit/ios
    /bin/sh -c /tmp/pepperoni-app-kit/ios/build/Build/Intermediates/PepperoniAppTemplate.build/Debug-iphonesimulator/PepperoniAppTemplate.build/Script-64ECB2A37DD1E0D254C2E832.sh

Ld build/Build/Products/Debug-iphonesimulator/PepperoniAppTemplate.app/PepperoniAppTemplate normal x86_64
    cd /tmp/pepperoni-app-kit/ios
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/wjiang/.rvm/gems/ruby-2.3.1/bin:/Users/wjiang/.rvm/gems/ruby-2.3.1@global/bin:/Users/wjiang/.rvm/rubies/ruby-2.3.1/bin:/Users/wjiang/.rvm/bin:/Users/wjiang/.nvm/versions/node/v6.3.0/bin:/Users/wjiang/workspace/go/bin:/usr/local/heroku/bin:/Users/wjiang/.rbenv/shims:/Users/wjiang/.rbenv/shims:/Users/wjiang/.rbenv/bin:/Developer/NVIDIA/CUDA-7.5/bin:/Users/wjiang/opt/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Library/TeX/texbin:/Users/wjiang/opt/android/sdk/tools:/Users/wjiang/opt/android/sdk/platform-tools:/Users/wjiang/workspace/go/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin:/Applications/Android Studio.app/sdk/tools:/Users/wjiang/opt/gradle-2.1/bin:/Users/wjiang/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator -L/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/AFNetworking -L/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/CocoaLumberjack -L/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/Lock -L/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/Masonry -L/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/SimpleKeychain -L/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/TouchIDAuth -F/tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator -filelist /tmp/pepperoni-app-kit/ios/build/Build/Intermediates/PepperoniAppTemplate.build/Debug-iphonesimulator/PepperoniAppTemplate.build/Objects-normal/x86_64/PepperoniAppTemplate.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lc++ -ObjC -lAFNetworking -lCocoaLumberjack -lLock -lMasonry -lSimpleKeychain -lTouchIDAuth -framework CoreGraphics -framework Foundation -framework LocalAuthentication -framework MobileCoreServices -framework Security -framework SystemConfiguration -framework UIKit -framework WebKit -fobjc-arc -fobjc-link-runtime /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libReact.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTImage.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTLinking.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTSettings.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTText.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTVibration.a /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -lA0RNLock -lPods-PepperoniAppTemplate -Xlinker -dependency_info -Xlinker /tmp/pepperoni-app-kit/ios/build/Build/Intermediates/PepperoniAppTemplate.build/Debug-iphonesimulator/PepperoniAppTemplate.build/Objects-normal/x86_64/PepperoniAppTemplate_dependency_info.dat -o /tmp/pepperoni-app-kit/ios/build/Build/Products/Debug-iphonesimulator/PepperoniAppTemplate.app/PepperoniAppTemplate
ld: library not found for -lA0RNLock
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **


The following build commands failed:
    Ld build/Build/Products/Debug-iphonesimulator/PepperoniAppTemplate.app/PepperoniAppTemplate normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/PepperoniAppTemplate.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
/private/tmp/pepperoni-app-kit/node_modules/promise/lib/done.js:10
      throw err;
      ^

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/PepperoniAppTemplate.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

    at checkExecSyncError (child_process.js:475:13)
    at Object.execFileSync (child_process.js:495:13)
    at _runIOS (/private/tmp/pepperoni-app-kit/node_modules/react-native/local-cli/runIOS/runIOS.js:91:28)
    at /private/tmp/pepperoni-app-kit/node_modules/react-native/local-cli/runIOS/runIOS.js:24:1
    at tryCallTwo (/private/tmp/pepperoni-app-kit/node_modules/promise/lib/core.js:45:5)
    at doResolve (/private/tmp/pepperoni-app-kit/node_modules/promise/lib/core.js:200:13)
    at new Promise (/private/tmp/pepperoni-app-kit/node_modules/promise/lib/core.js:66:3)
    at Array.runIOS (/private/tmp/pepperoni-app-kit/node_modules/react-native/local-cli/runIOS/runIOS.js:23:8)
    at Object.run (/private/tmp/pepperoni-app-kit/node_modules/react-native/local-cli/cliEntry.js:95:11)
    at Object.<anonymous> (/Users/wjiang/.nvm/versions/node/v6.3.0/lib/node_modules/react-native-cli/index.js:88:7)
/tmp/pepperoni-app-kit $

Steps to reproduce the error:

  1. git clone https://github.com/futurice/pepperoni-app-kit
  2. cd pepperoni-app-kit && npm install
  3. cp env.example.js env.js
  4. cd ios && pod repo update && pod install && cd -
  5. react-native run-ios

Versions:

  • node: v6.3.0
  • npm: v3.10.3
  • ruby: v2.3.1
  • pod: 1.0.1
  • react-native-cli: v1.0.0
  • react-native: v0.29.0
@bryanterrell
Copy link

I actually had the app running in the iOS simulator briefly, but after wiping and trying again I can't seem to get it running - just getting that same error:
":CFBundleIdentifier", Does Not Exist

@jevakallio jevakallio added the bug label Jul 12, 2016
@jevakallio
Copy link
Contributor

jevakallio commented Jul 12, 2016

Yes, I can replicate this. Investigating. This appears to be reported in facebook/react-native#7308 and facebook/react-native#7806 as well.

@ljmsouza
Copy link

I had this problem and solved with the react-native upgrade command like that guy commented on https://github.com/facebook/react-native/issues/7308. @jevakallio thanks for the reference! 😄

@wujiang
Copy link
Author

wujiang commented Jul 12, 2016

@ljmsouza After react-native upgrade, the build was successful for me too. Thank you. It's a problem from react-native so I'm closing this ticket. Thank you very much for the help guys!

@wujiang wujiang closed this as completed Jul 12, 2016
@jevakallio
Copy link
Contributor

It's not entirely a react-native issue, Pepperoni should build out of the box. For some reason the PRODUCT_NAME variable binding we use to populate the CFBundleIdentifier field no longer works after the latest upgrade.

I have fixed the issue locally by running react-native upgrade and reapplying our customisation son top of it. I have working version of Pepperoni, but made some unnecessary .pbxproject changes in the process and need to clean up before pushing this up.

I'll reopen until this is fixed in master, so others experiencing the same problem don't get tripped up or resubmit a new one.

@jevakallio jevakallio reopened this Jul 12, 2016
@wujiang
Copy link
Author

wujiang commented Jul 12, 2016

Understood. Thank you.

@clauderic
Copy link
Contributor

Any update on this?

@jevakallio
Copy link
Contributor

@clauderic this has just been fixed by #94. See the PR for tests to verify that change worked.

If you have trouble with getting the new version working with a fresh clone, let me know.

@acao
Copy link

acao commented Sep 15, 2016

Still getting this error on a fresh clone

@ghost
Copy link

ghost commented Sep 15, 2016

@acao did you take the steps shown in #94. Specifically, (cd ios; pod repo update; pod install)?

@steezeburger
Copy link

steezeburger commented Sep 15, 2016

@jhabdas I also just tried running the ios version and did complete that step and am having the same issues.

Edit: The only thing I did differently was clone as mirror and update my remote as well renaming the app. I blew everything away and started over without renaming and just did a normal clone and it worked.

@ghost
Copy link

ghost commented Sep 15, 2016

@jevakallio seems this should be reopened

@krolow
Copy link

krolow commented Sep 28, 2016

I have faced that today

@AndrewZurn
Copy link

Same, hit the exact same error off a fresh copy (or rather taken yesterday morning) clone of the template.

@ghost
Copy link

ghost commented Oct 4, 2016

RN moves fast. My best suggestion is to slim down your boilerplates, start from an RN init and practice "code for today" XP philosophies while building leveraging the best of the current kits available. Good luck to all. And I hope to see a new simple starter kit emerge for RN without immutable.

@AndrewZurn
Copy link

Seems like I was able to fix the issue somehow... not quite sure what I did, attempted a manual linking, and then actually ran rnpm link react-native-lock and it seemed to resolve itself.

Here is what the commit ended up looking like.
AndrewZurn@367f3cd

@cparjaszewski
Copy link

Same issue today for a fresh clone, any update on this?

@tino-junge
Copy link
Contributor

Hey @KrzysztofP, thanks for your interest in pepperoni 🍕 🚀 What steps are you using for a fresh clone? Just checked it out myself and the following steps are working for me. Let me know if you have any issues with these:

git clone git@github.com:futurice/pepperoni-app-kit.git
cd pepperoni-app-kit 
yarn  // or `npm install`
(cd ios; pod install)
react-native run-ios

@tino-junge
Copy link
Contributor

Hi @KrzysztofP, we removed now cocoa pods as dependency so you shouldn't get this error anymore when cloning a fresh copy of the repo again. Just run

yarn install
react-native run-ios

to get started. Let me know if it solves you issue.

@tino-junge
Copy link
Contributor

closing this now since issue doesn't seem to be active anymore

@fredbt
Copy link

fredbt commented Jul 5, 2017

I'm still having this issue (running react-native run-android in a linux box). Not sure if it's a problem that I'm using Linux.
I've just cloned the repo.

@ghost
Copy link

ghost commented Jul 5, 2017

@fredbt perhaps time to open a new ticket?

@ghost
Copy link

ghost commented Jul 5, 2017

use uname -a to get the deets about your distro

ProReactJS added a commit to ProReactJS/pepperoni-app that referenced this issue Jul 1, 2019
ProReact-cool added a commit to ProReact-cool/pepperoni-app that referenced this issue Aug 22, 2019
mnramo added a commit to mnramo/pepperoni-app-kit that referenced this issue May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests