/Users/avinashkasukurthi/Developer/Flutter Projects/zopnote/consumer-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-C++' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-C++' from project 'Pods')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/vv/l96pnk5d49z96x0w400w0r0m0000gn/T/flutter_tools.jlRzPP/flutter_ios_build_temp_dira4jNaQ/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 13.
Please goto Podfile inside that check for this line platform :ios, '9.0'
and change that 9.0 to 11.0 or 12.0 if its commented line then uncomment it.
like this
EDIT
scroll down to end of Podfile and you find something like this
Add this line :
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
Replace all
IPHONEOS_DEPLOYMENT_TARGET = 8.0
or
IPHONEOS_DEPLOYMENT_TARGET = 9.0
with
IPHONEOS_DEPLOYMENT_TARGET = 11.0
Related
So after I ran:
flutter build ipa
I got the output like this in visual studio code:
đź’Ş Building with sound null safety đź’Ş
Archiving com.ehealth.EMSdailysurvey...
Automatically signing iOS for device deployment using specified development team in Xcode project: 54GG7M63R4
Running pod install... 786ms
Running Xcode build...
└─Compiling, linking and signing... 5.4s
Xcode archive done. 39.1s
Failed to build iOS app
Error output from Xcode build:
↳
error: using bridging headers with module interfaces is unsupported
** ARCHIVE FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/9p/bw8m2_ns5kx4hppr37mzz1zr0000gn/T/flutter_tools.9yTkx8/flutter_ios_build_temp_dir6Hgplm/temporary_xcresult_bundle
error: Using bridging headers with module interfaces is unsupported (in target 'Runner' from project 'Runner')
Command SwiftDriver emitted errors but did not return a nonzero exit code to indicate failure
note: Building targets in dependency order
warning: Run script build phase '[CP-User] Config codegen' will be run during every build because it does not specify any outputs. To address this
warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the
script phase. (in target 'flutter_config' from project 'Pods')
warning: no rule to process file '/Users/wendasai/opt/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/BuildDotenvConfig.rb'
of type 'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
warning: no rule to process file '/Users/wendasai/opt/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/BuildXCConfig.rb' of
type 'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
warning: no rule to process file '/Users/wendasai/opt/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_config-2.0.0/ios/Classes/ReadDotEnv.rb' of type
'text.script.ruby' for architecture 'arm64' (in target 'flutter_config' from project 'Pods')
note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is
unchecked. (in target 'Runner' from project 'Runner')
note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is
unchecked. (in target 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/9p/bw8m2_ns5kx4hppr37mzz1zr0000gn/T/flutter_tools.9yTkx8/flutter_ios_build_temp_dir6Hgplm/temporary_xcresult_bundle
Swift Compiler Error (Xcode): Using bridging headers with module interfaces is unsupported
Uncategorized (Xcode): Command SwiftDriver emitted errors but did not return a nonzero exit code to indicate failure
Encountered error while archiving for device.
The application can be built properly using IOS simulator. So I was expecting it to be built properly as a ipa as weel. But now I really start to get very confuse about why it does not allow me to build the ipa file. Any one have any idea why this is happening? I am trying to compile the ipa for a IOS program I wrote but I have been stuck on this bug for a week... I do not know how to solve this. I googled online and it seems there are no similar solutions... Can anyone help me please! Thank you in advance!
Regards
After upgrading to the latest version of React Native (0.70.3) and updating all npm packages including the Firebase dependencies to version 16.1.1, my iOS app fails to build with the below error. Others who experienced similar errors said to look at the Copy Bundle Resources section in Xcode and remove any duplicates from there, but my list doesn't have any duplicates so I'm at a loss as to how to fix this...
note: Building targets in dependency order
error: Multiple commands produce '/Users/justintoth/Library/Developer/Xcode/DerivedData/Marriage365-cvaqfonbgyahhfgjedajduowtwdf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport/FirebaseAnalytics.framework'
note: That command depends on command in Target 'FirebaseAnalytics' (project 'Pods'): script phase “[CP] Copy XCFrameworks”
note: That command depends on command in Target 'FirebaseAnalytics.default-WithoutAdIdSupport' (project 'Pods'): script phase “[CP] Copy XCFrameworks”
warning: duplicate output file '/Users/justintoth/Library/Developer/Xcode/DerivedData/Marriage365-cvaqfonbgyahhfgjedajduowtwdf/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport/FirebaseAnalytics.framework' on task: PhaseScriptExecution [CP] Copy XCFrameworks /Users/justintoth/Library/Developer/Xcode/DerivedData/Marriage365-cvaqfonbgyahhfgjedajduowtwdf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseAnalytics.default-WithoutAdIdSupport.build/Script-46EB2E00033070.sh (in target 'FirebaseAnalytics.default-WithoutAdIdSupport' from project 'Pods')
I had the same problem and resolved it with these steps :
Choose whether you want to use Firebase with ou without Support
In my case, I didn't this support, so I've modified the podfile with
Replace the line pod 'Firebase/Analytics' with pod 'Firebase/AnalyticsWithoutAdIdSupport'
Add this line before in your podfile : $RNFirebaseAnalyticsWithoutAdIdSupport = true
build with pod install
It fixed my problem
I have a problem running my react native app in IOS. The following build commands failed: SwiftCompile normal x86_64 Compiling\ STPAPIClient+ApplePay.swift,\ STPAPIClient+PaymentsCore.swift,\ STPApplePayContext.swift / ........
I just updated my xcode to the latest version
Full Error
/Users/joe/Documents/play/test_app/ios/TestApp.xcodeproj: warning: Multiple targets match implicit dependency for linker flag '-lOGReactNativeWaveform'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'TestApp' from project 'TestApp')
note: Target 'OGReactNativeWaveform' (in project 'Pods')
note: Target 'OGReactNativeWaveform' (in project 'OGReactNativeWaveform')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'TestApp' from project 'TestApp')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'TestApp' from project 'TestApp')
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'TestApp' from project 'TestApp')
warning: Run script build phase '[CP-User] [RNFB] Core Configuration' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'TestApp' from project 'TestApp')
warning: Run script build phase '[CP-User] [RNFB] Crashlytics Configuration' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'TestApp' from project 'TestApp')
The following build commands failed:
SwiftCompile normal x86_64 Compiling\ STPAPIClient+ApplePay.swift,\ STPAPIClient+PaymentsCore.swift,\ STPApplePayContext.swift /Users/joe/Documents/play/test_app/ios/Pods/StripeApplePay/StripeApplePay/StripeApplePay/Source/ApplePayContext/STPAPIClient+ApplePay.swift /Users/joe/Documents/play/test_app/ios/Pods/StripeApplePay/StripeApplePay/StripeApplePay/Source/PaymentsCore/Categories/STPAPIClient+PaymentsCore.swift /Users/joe/Documents/play/test_app/ios/Pods/StripeApplePay/StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift (in target 'StripeApplePay' from project 'Pods')
CompileSwift normal x86_64 /Users/joe/Documents/play/test_app/ios/Pods/StripeApplePay/StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift (in target 'StripeApplePay' from project 'Pods')
(2 failures)
I am facing many issues since I migrated my project to an Apple Silicon mac. I finally managed to reduce the problems but not sure the answer to this.
Running "flutter pub get" in Flutter_the app copy 3... 760ms
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install... 986ms
Running Xcode build...
Xcode build done. 1.5s
Failed to build iOS app
Error output from Xcode build:
↳
objc[95181]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20ba238f0) and ??
(0x1160dc2b8). One of the two will be used. Which one is undefined.
objc[95181]: Class AMSupportURLSession is implemented in both ?? (0x20ba23940) and ?? (0x1160dc308). One
of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
error: /Users/gorkem/Documents/flutter_workspace/Flutter_the app copy 3/ios/Flutter/Debug.xcconfig:
unable to open file (in target "Runner" in project "Runner") (in target 'Runner' from project 'Runner')
warning: Unable to read contents of XCFileList '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project
'Runner')
error: Unable to load contents of file list: '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-input-files.xcfilelist' (in target 'Runner' from project
'Runner')
error: Unable to load contents of file list: '/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project
'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 11.
Is there any way to solve this. I am not sure if the problem is even written in there.
I was getting this error
Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib
NOTE:
Try this first if you have updated to flutter 2.10 from <=2.8
flutter pub upgrade
Solution:
Please open podfile and update with this script
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
flutter clean
flutter pub get
cd ios
pod install
or instead of last command you can try below for M1
arch -x86_64 pod install // for M1
Run your app.
I was getting the same "error output from Xcode build" with my M1 macbook recently as well after updating to Flutter 2.x.
I was able to clear this issue on mine by doing the following:
Change directory to your project's path and sub-directory:
your_project/build/ios/Debug-iphonesimulator/
Run $ xattr -lr Runner.app
Run $ xattr -cr Runner.app
Apparently flutter projects have extended attributes in project app bundles containing Finder info which causes an error.
I found these links that helped for reference.
https://developer.apple.com/library/archive/qa/qa1940/_index.html
https://github.com/flutter/flutter/issues/72492
Try Selecting For install builds only in the run script in the Build phases tab.
Two things need to change:
First check the Dependancy for APNs if need to upgrade. Then Change the version in the POD file and then add
pod 'GoogleUtilities'
To the POD target like following:
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_macos_pods File.dirname(File.realpath(FILE))
pod 'GoogleUtilities'
end
.
After this Run Flutter pug get and Flutter run. It works for me.
Ref screenshot for POD file
When I am going to compile flutter project to ios from CodeMagic, then build failed with this error.
Xcode's output:
↳
error: Multiple commands produce '/Users/builder/clone/build/ios/Debug-iphoneos/Runner.app/Frameworks/Flutter.framework':
1) Target 'Runner' (project 'Runner') has copy command from '/Users/builder/clone/ios/Flutter/Flutter.framework' to '/Users/builder/clone/build/ios/Debug-iphoneos/Runner.app/Frameworks/Flutter.framework'
2) That command depends on command in Target 'Runner' (project 'Runner'): script phase “[CP] Embed Pods Frameworks”
Please help me to fix this issue.