Ionic package build failed for native builds

I am trying to use package command but native builds failed all time i am using this command

ionic package build ios --profile newcheck dev
and it showing this build error

Building project: /Users/package/workspace/apps-4bda878b-1/cordova/platforms/ios/MyApp.xcworkspace
	Configuration: Debug
	Platform: device
User defaults from command line:
    IDEArchivePathOverride = /Users/package/workspace/apps-4bda878b-1/cordova/platforms/ios/MyApp.xcarchive

Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/package/workspace/apps-4bda878b-1/cordova/platforms/ios/build/device
    SHARED_PRECOMPS_DIR = /Users/package/workspace/apps-4bda878b-1/cordova/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/package/workspace/apps-4bda878b-1/cordova/platforms/ios/cordova/build-debug.xcconfig':
    CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
    CODE_SIGN_ENTITLEMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist
    CODE_SIGN_IDENTITY = iPhone Developer
    DEVELOPMENT_TEAM = 3WPD4QFUED
    ENABLE_BITCODE = NO
    GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1
    HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
    OTHER_LDFLAGS = -ObjC
    PROVISIONING_PROFILE = 9e4d9793-0205-4c1f-ab28-8c57f068c38d
    SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h

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

And where is the error?

l

I am getting error in android build too

Please show the whole build output and not only the first few lines. A screenshot is not enough, please copy/paste the whole text there.

Building project: /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/MyApp.xcworkspace
Configuration: Debug
Platform: device
User defaults from command line:
IDEArchivePathOverride = /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/MyApp.xcarchive

Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/device
SHARED_PRECOMPS_DIR = /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/sharedpch

Build settings from configuration file ‘/Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/cordova/build-debug.xcconfig’:
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
CODE_SIGN_ENTITLEMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist
CODE_SIGN_IDENTITY = iPhone Developer
DEVELOPMENT_TEAM = 3WPD4QFUED
ENABLE_BITCODE = NO
GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1
HEADER_SEARCH_PATHS = “$(TARGET_BUILD_DIR)/usr/local/lib/include” “$(OBJROOT)/UninstalledProducts/include” “$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include” "$(BUILT_PRODUCTS_DIR)"
OTHER_LDFLAGS = -ObjC
PROVISIONING_PROFILE = 9e4d9793-0205-4c1f-ab28-8c57f068c38d
SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h

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

Check dependencies

Write auxiliary files
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap
/bin/mkdir -p /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/sharedpch/CordovaLib_Prefix-gfirdtmrxkbwhufsizltncevvunx
write-file /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/sharedpch/CordovaLib_Prefix-gfirdtmrxkbwhufsizltncevvunx/CordovaLib_Prefix.pch.pch.hash-criteria
/bin/mkdir -p /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/Cordova.LinkFileList
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova.hmap
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-non-framework-target-headers.hmap
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap
/bin/mkdir -p /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7
write-file /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/Cordova.LinkFileList
/bin/mkdir -p /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/sharedpch/CordovaLib_Prefix-cttlmaxrhnmnsogofxupgsnpmnqh
write-file /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/sharedpch/CordovaLib_Prefix-cttlmaxrhnmnsogofxupgsnpmnqh/CordovaLib_Prefix.pch.pch.hash-criteria

SymLink /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/device/libCordova.a /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a
cd /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib
export PATH="/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode8.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/bin/ln -sfh /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libCordova.a /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/device/libCordova.a

CpHeader Classes/Public/CDV.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova/CDV.h
cd /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib
export PATH="/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode8.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib/Classes/Public/CDV.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova

CpHeader Classes/Public/CDVWebViewEngineProtocol.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova/CDVWebViewEngineProtocol.h
cd /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib
export PATH="/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode8.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib/Classes/Public/CDVWebViewEngineProtocol.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova

CpHeader Classes/Public/CDVCommandDelegateImpl.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova/CDVCommandDelegateImpl.h
cd /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib
export PATH="/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode8.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib/Classes/Public/CDVCommandDelegateImpl.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova

CpHeader Classes/Public/CDVScreenOrientationDelegate.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova/CDVScreenOrientationDelegate.h
cd /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib
export PATH="/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode8.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/CordovaLib/Classes/Public/CDVScreenOrientationDelegate.h /Users/package/Library/Developer/Xcode/DerivedData/MyApp-cqooewezuxqvmsfjcpalmhdzaevc/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/Cordova

and so long pasting whole is exceeding limit here

Then look through it and post the relevant bits where there is actually an error.

Sorry i didnot get you how can i found relevant bits?

I don’t know because I don’t see the error message. Probably something with “error” or “broken”… Post the file somewhere else and share the link if you don’t find it yourself. Right now we have nothing to debug your problem.


you can check this file

Here is the actual error:

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

Check dependencies
No signing certificate "iOS Development" found:  No "iOS Development" signing certificate matching team ID "3WPD4QFUED" with a private key was found.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'

** ARCHIVE FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,MyApp.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/package/workspace/apps-4bda878b-2/cordova/platforms/ios/build/sharedpch

Seems something is broken with the uploaded certificates. Did you upload the correct ones?

yes i have uploaded correct certificates

A post was split to a new topic: Ionic Package: Could not find gradle wrapper within Android SDK

What about ios issue still its not fixed

1 Like