Ionic build iOS failed

Hi All,

I failed to build the iOS package. Below is the command I used , Looks codesign can’t find the file libswiftCore.dylib. Can you please help me on that ?

ionic cordova build ios --device --debug --buildFlag="-allowProvisioningUpdates" 



e[2Ke[GRequested Swift ABI version based on scanned binaries: 5
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreFoundation.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCoreFoundation.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreFoundation.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCoreFoundation.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCoreGraphics.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCoreGraphics.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCoreImage.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCoreImage.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftDarwin.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftDarwin.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftDispatch.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftDispatch.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftFoundation.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftFoundation.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMetal.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftMetal.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMetal.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftMetal.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftObjectiveC.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftObjectiveC.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftQuartzCore.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftQuartzCore.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftUIKit.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftUIKit.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftos.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftos.dylib
e[2Ke[G  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftos.dylib' '-r' '-o' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftos.dylib'
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftCore.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreFoundation.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftCoreFoundation.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftCoreGraphics.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftCoreImage.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftDarwin.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftDispatch.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftFoundation.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftMetal.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftMetal.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftObjectiveC.dylib
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftQuartzCore.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftUIKit.dylib
e[2Ke[GCopying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftos.dylib to /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/BuildProductsPath/SwiftSupport/iphoneos/libswiftos.dylib
e[2Ke[GProbing signature of /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib
e[2Ke[G  /usr/bin/codesign '-r-' '--display' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib'
e[2Ke[G/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib: code object is not signed at all
Codesigning /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib
  /usr/bin/codesign '--force' '--sign' '40822432861ACA6AF5ADC9CFA44F828D495D8A3C' '--verbose' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib'
e[2Ke[G/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib: unknown error -1=ffffffffffffffff
e[2Ke[Gerror: Task failed with exit 1 signal 0 {
e[2Ke[G	/usr/bin/codesign '--force' '--sign' '40822432861ACA6AF5ADC9CFA44F828D495D8A3C' '--verbose' '/Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app/Frameworks/libswiftCore.dylib'
}
e[2Ke[G
e[2Ke[G** ARCHIVE FAILED **

e[2Ke[G
The following build commands failed:
	CopySwiftLibs /Users/admin/Library/Developer/Xcode/DerivedData/tang300-ggzepccimdywrlguqswyhaubqbis/Build/Intermediates.noindex/ArchiveIntermediates/tang300/InstallationBuildProductsLocation/Applications/tang300.app
(1 failure)
e[2Ke[GError: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/admin/code/personal/TangPoems/platforms/ios/cordova/build-debug.xcconfig,-workspace,tang300.xcworkspace,-scheme,tang300,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,tang300.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/admin/code/personal/TangPoems/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/admin/code/personal/TangPoems/platforms/ios/build/sharedpch
e[2Ke[G
e[2Ke[G[ERROR] An error occurred while running cordova build ios --debug --device (exit code 1).

Where is this output from? Doesn’t really look like local output, Ionic Pro Package?

What is your ionic info output?