Create .ipa file error ==> CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called

I want to create a .ipa file from an ejected expo project.

These are the steps I did:

  1. I run a script like described here https://vojtastavik.com/2018/10/15/building-ios-app-without-xcode/

  2. Run:

    xcodebuild clean build
    -scheme MobileAgent
    -destination "generic/platform=iOS"
    -sdk "iphoneos15.0"
    -workspace $WORKSPACE
    -derivedDataPath ../BUILD
    archive -archivePath $ARCHIVE_PATH
    -configuration release
    IPHONEOS_DEPLOYMENT_TARGET=12.0

  3. Run:

    xcodebuild -exportArchive
    -archivePath $ARCHIVE_PATH
    -exportPath $IPA_FOLDER_PATH
    -exportOptionsPlist $PLIST_PATH

I get this error at the end:

2021-11-05 11:33:17.560 xcodebuild[51457:231001] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/96/65b6pcc948v8r1s378syvwnr0000gn/T/MobileAgent_2021-11-05_11-33-17.559.xcdistributionlogs".

2021-11-05 11:33:18.104 xcodebuild[51457:231077] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called

2021-11-05 11:33:20.424 xcodebuild[51457:231001] -[NSNull path]: unrecognized selector sent to instance 0x7fff80747eb0
** INTERNAL ERROR: Uncaught exception **

Uncaught Exception: -[NSNull path]: unrecognized selector sent to instance 0x7fff80747eb0
Stack:
0   __exceptionPreprocess (in CoreFoundation)
1   objc_exception_throw (in libobjc.A.dylib)
2   -[NSObject(NSObject) __retain_OA] (in CoreFoundation)
3   ___forwarding___ (in CoreFoundation)
4   _CF_forwarding_prep_0 (in CoreFoundation)
5   -[IDEDistributionProcessingPipeline process:] (in IDEFoundation)
6   -[IDEDistributionPackagingStep loadFromExportOptions:error:] (in IDEFoundation)
7   -[IDEDistributionDriver runWithDestinationPath:error:] (in IDEFoundation)
8   -[Xcode3CommandLineBuildTool _distributeArchiveAndExit] (in Xcode3Core)
9   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
10   main (in xcodebuild)
11   start (in libdyld.dylib)

This is some content of "MobileAgent_2021-11-05_11-33-17.559.xcdistributionlogs":

2021-11-05 10:33:20 +0000 [MT] Processing step: IDEDistributionInfoPlistStep
2021-11-05 10:33:20 +0000 [MT] Skipping step: IDEDistributionInfoPlistStep because it said so
2021-11-05 10:33:20 +0000 [MT] Skipping step: IDEDistributionInfoPlistStep because it said so
2021-11-05 10:33:20 +0000 [MT] Processing step: IDEDistributionAppThinningPlistStep
2021-11-05 10:33:20 +0000 [MT] Skipping step: IDEDistributionAppThinningPlistStep because it said so
2021-11-05 10:33:20 +0000 [MT] Processing step: IDEDistributionCompileBitcodeStep
2021-11-05 10:33:20 +0000 [MT] Running /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool '/var/folders/96/65b6pcc948v8r1s378syvwnr0000gn/T/XcodeDistPipeline.~~~GIQl2g/Root' '--json' '/var/folders/96/65b6pcc948v8r1s378syvwnr0000gn/T/ipatool-json-filepath-~~~dXuyUp' '--output' '/var/folders/96/65b6pcc948v8r1s378syvwnr0000gn/T/IDEIPAProcessor.AppThinning.~~~wQjXXo' '--toolchain' '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr' '--platforms' '/Applications/Xcode.app/Contents/Developer/Platforms' '--app-store-tools-build-version' '13A1030d' '--compile-bitcode'
2021-11-05 10:33:20 +0000  ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
2021-11-05 10:33:20 +0000  /Users/MY_USER/.rvm/gems/ruby-2.6.6/gems/CFPropertyList-3.0.4/lib/cfpropertylist/rbCFPropertyList.rb:83: warning: assigned but unused variable - temp
2021-11-05 10:33:20 +0000  Ignoring executable-hooks-1.6.1 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.1
2021-11-05 10:33:20 +0000  Ignoring ffi-1.15.4 because its extensions are not built. Try: gem pristine ffi --version 1.15.4
2021-11-05 10:33:20 +0000  Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0
2021-11-05 10:33:20 +0000  Ignoring sqlite3-1.4.2 because its extensions are not built. Try: gem pristine sqlite3 --version 1.4.2

2021-11-05 10:33:20 +0000  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- sqlite3 (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:24:in `<main>'

2021-11-05 10:33:20 +0000 [MT] /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool exited with 1
2021-11-05 10:33:20 +0000 [MT] ipatool JSON: (null)

What i tried already:

  • gem pristine --all

Did you resolve the issue, I'm still facing the issue. Could you please let me know the fix :)

Create .ipa file error ==&gt; CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
 
 
Q