Ios app build is failed

CompileC build/AppName.build/Debug-iphonesimulator/AppName.build/Objects-normal/x86_64/Diagnostic_Motion.o AppName/Plugins/cordova.plugins.diagnostic/Diagnostic_Motion.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

Above is the error I am getting when I am trying to build the app for ios platform.

any idea? I am new to ionic and this is for the first time I am building the app

delete the platform and the plugin and try readding them

Hello thesourav,

I have deleted the plugin and removed it from everywhere (package.json, config etc) and tried again following.

  1. removed node_modules and reinstalled everything via rpm I — success
  2. added the platform again – success
  3. added the resources again – success
  4. Tried to build for iOS – Failed with following error

the following build commands failed:
Ld build/emulator/Game\ Gods.app/Game\ Gods normal x86_64
(1 failure)
(node:6437) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/apple/untitled folder/gamegod/platforms/ios/cordova/build-debug.xcconfig,-workspace,Game Gods.xcworkspace,-scheme,Game Gods,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/apple/untitled folder/gamegod/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/apple/untitled folder/gamegod/platforms/ios/build/sharedpch
(node:6437) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6437) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[ERROR] An error occurred while running cordova build ios (exit code 1).

What other plugins do you have