Problem with cocoapods

Troubleshooting

In the last two days I have setup my new development machine which is. anew macbook. Old machine still works but it was a bit slow. I never experienced any problem like the one I am going to describe.

I reinstalled all the tools needed for development and when it came to flutterflow I have configured Localrun as suggested by the documentation.

When I tried to launch LocalRun I have got the following error:

Couldn't determine repo type for URL: https://cdn.cocoapods.org/: SSL_connect returned=1 errno=0 peeraddr=104.26.1.240:443 state=error: certificate verify failed (unable to get local issuer certificate)

If I look at the logs I can see

Updating local specs repositories
[!] Couldn't determine repo type for URL: https://cdn.cocoapods.org/: SSL_connect returned=1 errno=0 peeraddr=104.26.1.240:443 state=error: certificate verify failed (unable to get local issuer certificate)
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Updating local specs repositories
[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: SSL_connect returned=1 errno=0 peeraddr=104.26.1.240:443 state=error: certificate verify failed (unable to get local issuer certificate)
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Upgrading contents.xcworkspacedata
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
Upgrading Info.plist
Removing script build phase dependency analysis.
Adding input path to Thin Binary build phase.
Running pod install...                                             363ms
CocoaPods' output:
โ†ณ
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

As you can see on the last line there is an empty string parameter for ARCHS. By searching on the internet I've found an article that says that the parameter is coming from the ios/Flutter/Generated.xcconfig file and by looking at mine I can read

// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/xxxxx/Library/Application Support/io.flutterflow.prod.mac/flutter
FLUTTER_APPLICATION_PATH=/Users/xxxxx/Library/Application Support/io.flutterflow.prod.mac/fidelity
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=/Users/xxxxx/Library/Application Support/io.flutterflow.prod.mac/fidelity/lib/main.dart
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=1.0.0
FLUTTER_BUILD_NUMBER=1
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=/Users/xxxxx/Library/Application Support/io.flutterflow.prod.mac/fidelity/.dart_tool/package_config.json

As you can see the file excludes either simulators with i386 architecture as well as iphoneos with armv7 architecture.

Is this correct? What is driving the generation of that file? Is there some option in xCode to change this behavior? Any suggestion?

What have you tried so far?

Searched the internet for support and read the documentation multiple times

Did you check FlutterFlow's Documentation for this topic?
Yes
3
1 reply