Unable to login in Taxi app dashboard

Hi,

I have been using Taxi app/uber clone and found out that, I am unable to login in admin dashboard.

I am running a local mongodb instance with correct localhost config. Rest, I am also running the express app provided in backend folder and both the server and react app from the backend-admin folder.

Second issue I am facing is that, I am unable to run the frontend-driver app using react native cli.

This is the error stack I am getting:

** BUILD FAILED **


The following commands produced analyzer issues:
	Analyze Base/RCTModuleMethod.mm normal x86_64
	Analyze RCTNetInfo.m normal x86_64
(2 commands with analyzer issues)

The following build commands failed:
	PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock build/Build/Intermediates.noindex/Driver.build/Debug-iphonesimulator/Driver.build/Script-4F87584A07EFB32583CDAE55.sh
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/Driver.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

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


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

    at checkExecSyncError (child_process.js:629:11)
    at Object.execFileSync (child_process.js:647:13)
    at Promise.then (/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/node_modules/react-native/local-cli/runIOS/runIOS

Another error when running frontend-rider:

** BUILD FAILED **


Installing build/Build/Products/Debug-iphonesimulator/Rider.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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


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

    at checkExecSyncError (child_process.js:629:11)
    at Object.execFileSync (child_process.js:647:13)
    at Promise.then (/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)

what is your xcode version? scrolling up a little on your console log, you might see what is actual error during compiling. May you send me whole console log in TXT?

please do debug on server api to see if you are able to see request from web dashboard

Can you please tell me where is server API located?

In the error, it also says: POST http://localhost:3000/:443/api/auth/loginadmin 404 (Not Found) apiService.js:7

Is this the apiService.js file?

import Promise from "bluebird";
import httpStatus from "http-status";
import apiConfig from "./apiConfig";
import fetch from "../utils/fetch";


async function callApi(apiObject) {
  const fetchObject = {};
  fetchObject.method = apiObject.method ? apiObject.method : "GET";
  if (fetchObject.method !== 'GET'){
   fetchObject.body = apiObject.body ? JSON.stringify(apiObject.body) : {};
 }
  fetchObject.headers = {
    Accept: "application/json",
    "Content-Type": "application/json"
  };
  if (apiObject.authentication) {
    fetchObject.headers.Authorization = apiObject.authentication;
  }
  const url = `${apiConfig.serverUrl}:${apiConfig.port}/${apiObject.endpoint}`;
  const fetchResult = await fetch(url, fetchObject);
  return new Promise(async (resolve, reject) => {
    if (
      fetchResult.status >= httpStatus.OK &&
      fetchResult.status <= httpStatus.MULTIPLE_CHOICES
    ) {
      return resolve(fetchResult.json());
    }
    const errorResponse = await fetchResult.json();
    return reject(errorResponse);
  });
}

export default {callApi};

My Xcode version is 10.1

Here is the console log in txt for frontend-driver:

react-native run-ios
Found Xcode workspace Driver.xcworkspace
Building using "xcodebuild -workspace Driver.xcworkspace -configuration Debug -scheme Driver -destination id=C48825B3-6A34-4526-92A6-AB03B5A6D337 -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/build


Prepare build


note: Using legacy build system



=== BUILD TARGET yoga OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies




=== BUILD TARGET jsinspector OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies



=== BUILD TARGET privatedata OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies



=== BUILD TARGET double-conversion OF PROJECT React WITH CONFIGURATION Debug ===



Check dependencies



=== BUILD TARGET third-party OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies



Write auxiliary files
write-file /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/third-party.build/third-party.hmap


=== BUILD TARGET jschelpers OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies



=== BUILD TARGET cxxreact OF PROJECT React WITH CONFIGURATION Debug ===


Check dependencies



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


Check dependencies



PhaseScriptExecution Start\ Packager /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
    cd /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/node_modules/react-native/React
    /bin/sh -c /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh



PhaseScriptExecution Include\ RCTJSCProfiler /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-142C4F7F1B582EA6001F0B58.sh
    cd /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/node_modules/react-native/React
    /bin/sh -c /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Script-142C4F7F1B582EA6001F0B58.sh



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


Check dependencies



=== BUILD TARGET OneSignalNotificationServiceExtension OF PROJECT Driver WITH CONFIGURATION Debug ===


Check dependencies



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


Check dependencies



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


Check dependencies



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


Check dependencies



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


Check dependencies



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


Check dependencies



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



Check dependencies



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


Check dependencies



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


Check dependencies



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


Check dependencies



=== BUILD TARGET fishhook OF PROJECT RCTWebSocket WITH CONFIGURATION Debug ===


Check dependencies



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


Check dependencies



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



Check dependencies



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


Check dependencies



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


Check dependencies



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


Check dependencies

The file “Pods-Driver.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/Pods/Target Support Files/Pods-Driver/Pods-Driver.debug.xcconfig)

warning: skipping file '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/Frameworks/GoogleSignIn.bundle' (unexpected file type 'wrapper.plug-in' in Frameworks & Libraries build phase)



PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock build/Build/Intermediates.noindex/Driver.build/Debug-iphonesimulator/Driver.build/Script-4F87584A07EFB32583CDAE55.sh
    cd /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios
    /bin/sh -c /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/ios/build/Build/Intermediates.noindex/Driver.build/Debug-iphonesimulator/Driver.build/Script-4F87584A07EFB32583CDAE55.sh

diff: /Podfile.lock: No such file or directory

diff: /Manifest.lock: No such file or directory

error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.



** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock build/Build/Intermediates.noindex/Driver.build/Debug-iphonesimulator/Driver.build/Script-4F87584A07EFB32583CDAE55.sh
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/Driver.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

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


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

    at checkExecSyncError (child_process.js:629:11)
    at Object.execFileSync (child_process.js:647:13)
    at Promise.then (/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-driver/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)

Here is the console log in text for frontend-rider

react-native run-ios
Found Xcode workspace Rider.xcworkspace
Building using "xcodebuild -workspace Rider.xcworkspace -configuration Debug -scheme Rider -destination id=C48825B3-6A34-4526-92A6-AB03B5A6D337 -derivedDataPath build"
User defaults from command line:

    IDEDerivedDataPathOverride = /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build


note: Using new build system

note: Planning build

note: Constructing build description

Build system information
error: /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/Pods/Target Support Files/Pods-Rider/Pods-Rider.debug.xcconfig: unable to open file (in target "Rider" in project "Rider") (in target 'Rider')


Build system information
error: /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/Pods/Target Support Files/Pods-Rider/Pods-Rider.debug.xcconfig: unable to open file (in target "Rider" in project "Rider") (in target 'Rider')


Build system information


error: /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/Pods/Target Support Files/Pods-Rider/Pods-Rider.debug.xcconfig: unable to open file (in target "Rider" in project "Rider") (in target 'Rider')



Build system information

error: /Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/Pods/Target Support Files/Pods-Rider/Pods-Rider.debug.xcconfig: unable to open file (in target "Rider" in project "Rider") (in target 'Rider')


Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RCTOneSignal')



Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'SplashScreen')



Build system information

warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'RCTOneSignal')


Build system information

warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'RCTOneSignal')


Build system information
warning: Mapping architecture armv7s to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'RCTOneSignal')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/Entypo.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/EvilIcons.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/Feather.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/FontAwesome.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/Foundation.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/Ionicons.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/MaterialCommunityIcons.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/MaterialIcons.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/Octicons.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/SimpleLineIcons.ttf' (in target 'Rider')

Build system information
warning: ignoring duplicated output file: '/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/ios/build/Build/Products/Debug-iphonesimulator/Rider.app/Zocial.ttf' (in target 'Rider')


** BUILD FAILED **


Installing build/Build/Products/Debug-iphonesimulator/Rider.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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


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

    at checkExecSyncError (child_process.js:629:11)
    at Object.execFileSync (child_process.js:647:13)
    at Promise.then (/Users/amanhimself/Documents/github/blueprints/templates/uber-clone/frontend-rider/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)

The server API is in folder /ApiServer.

apiService.js is client api wrapper in web dasboard app

thanks for sharing the log. Please run ‘pod install’ under /ios folder

Hi @tony,

the folder names you have mentioned do not exist. However, I figured what you are trying to imply about the directory structure but I am still unable to get it work. Can you please walk me through with this? I have to finish the post for our blog. Let me if can have a better way to communicate like email or private messaging? Or if you have a working module/replica of this, please send it to me.

sounds like you dont have technical guide of this template yet.

/backend is API server
/backend-admin is web admin

you can post a message in #tech-support in Crowdbotics workspace, we can also discuss there. If you don’t have access, then let’s keep discuss here

Thanks!

Can you guide me what steps need to be taken?
Like what port numbers to change for local development? I have changed all of them in the app config files as mentioned. I am getting the same error as before ( I shared the screenshot above for the web app).

I am currently running the web admin(backend-admim) but unable to start the server for the API server. The error it throws is that it is unable to find any ‘dist’ directory in the API server folder.

The error it throws is that it is unable to find any ‘dist’ directory in the API server folder.

Please build API server by runing npm run build in API server source folder

Thanks @tony. Created the dist directory but the still unable to login to the admin dashboard. The earlier error, still remains.

Looks like it some how making the post request at localhost:4000/:433 instead of just :4000

Please check and correct the configuration in /backend-admin/react/src/services/apiConfig.js
serverUrl should be localhost and port is 4000 (in case your api server is running locally at port 4000)

1 Like