In my react native project, I am trying to run the ios build, when the app gets launched from Xcode - i am getting the following error
In the log i am getting the following
2021-10-28 12:20:20.100070+0530 Demo[5520:269821] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
2021-10-28 12:20:20.100224+0530 Demo[5520:269821] Cannot start load of Task <26908016-0250-4226-8326-9785165B3024>.<1> since it does not conform to ATS policy
2021-10-28 12:20:20.107070+0530 Demo[5520:269821] Task <26908016-0250-4226-8326-9785165B3024>.<1> finished with error [-1022] Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=http://localhost:8081/status, NSErrorFailingURLKey=http://localhost:8081/status, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <26908016-0250-4226-8326-9785165B3024>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <26908016-0250-4226-8326-9785165B3024>.<1>, NSUnderlyingError=0x6000038873f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}}
2021-10-28 12:20:20.148 [info][tid:main][RCTRootView.m:293] Running application Demo ({
initialProps = {
};
rootTag = 1;
})
2021-10-28 12:20:20.161585+0530 Demo[5520:269351] === TrustKit: Configuration passed via explicit call to initSharedInstanceWithConfiguration:
2021-10-28 12:20:20.172785+0530 Demo[5520:269351] === TrustKit: Loaded 0 SPKI cache entries from the filesystem
2021-10-28 12:20:20.173229+0530 Demo[5520:269351] === TrustKit: Successfully initialized with configuration {
TSKPinnedDomains = {
"devapi.demoworks.com" = {
TSKDisableDefaultReportUri = 0;
TSKEnforcePinning = 1;
TSKIncludeSubdomains = 1;
TSKPublicKeyHashes = "{(\n {length = 32, bytes = 0x00000000 00000000 00000000 00000000 ... 00000000 00000000 },\n {length = 32, bytes = 0x2e4aa7ce 16b40365 2c9c901d 783f3ff9 ... 191c87de 6e76ee0c }\n)}";
kSKExcludeSubdomainFromParentPolicy = 0;
};
"uatapi.demoworks.com" = {
TSKDisableDefaultReportUri = 0;
TSKEnforcePinning = 1;
TSKIncludeSubdomains = 1;
TSKPublicKeyHashes = "{(\n {length = 32, bytes = 0x00000000 00000000 00000000 00000000 ... 00000000 00000000 },\n {length = 32, bytes = 0x2e4aa7ce 16b40365 2c9c901d 783f3ff9 ... 191c87de 6e76ee0c }\n)}";
kSKExcludeSubdomainFromParentPolicy = 0;
};
};
TSKSwizzleNetworkDelegates = 1;
}
2021-10-28 12:20:20.296707+0530 Demo[5520:269820] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed
2021-10-28 12:20:20.631799+0530 Demo[5520:269833] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003760de0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-10-28 12:20:20.748 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
2021-10-28 12:20:20.749 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
how to fix this issue.