Hi,

I'm trying to compile a cordova plugin and I'm getting one error in ios: 

warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99.

Error\: xcodebuild\: Command failed with exit code 65

I'm using mabs 6.1 and I tried to update the deployment target in the plugin preferences inside the extensibility configurations to 8.0 or 11.0 but doesn't work. 


Hello Rui,


Is the plugin public? Can we take a look?


It might be that the plugin configuration code (package.json or plugin.xml) may be setting a lower target - or even one of the plugin's dependencies.

If we can take a look at it, would be easier.


Cheers!

Hello Armando, 

The plugin is public https://github.com/Rui-Nogaro/cordova-plugin-firebase.

I'm not sure but I took a look at cacoapods specifications and verified that the platform defined for all frameworks is ios 7.0 and I did the download of some frameworks source code and opened the plist file and understand that the MinIosVersion is 8.0. I'm not sure if it is the reason for the problem and if it is I don't know for now how to solve it.


Cheers and thank you!

Not sure if this is the case, but the first thing that I saw was this:

<engine name="cordova" version=">=3.2.0" />


Since you're compiling it in MABS 6.1, can you try changing it from 3.2.0 to 7.1.0?


I can do some tests too on my side, but thought I should point this out right away :)


Cheers!

Ok, I tried but got the same error.  

I think that taking into account the full logs the error is related to the frameworks.

Full log:

[2020-04-14T11\:22\:46.292Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseRemoteConfig' from project 'Pods')

[2020-04-14T11\:22\:46.292Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebasePerformance' from project 'Pods')

[2020-04-14T11\:22\:46.293Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseABTesting' from project 'Pods')

[2020-04-14T11\:22\:46.293Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseMessaging' from project 'Pods')

[2020-04-14T11\:22\:46.293Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseCore' from project 'Pods')

[2020-04-14T11\:22\:46.293Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseInstanceID' from project 'Pods')

[2020-04-14T11\:22\:46.293Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] 

[2020-04-14T11\:22\:46.294Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Crashlytics' from project 'Pods')

[2020-04-14T11\:22\:46.294Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseAuth' from project 'Pods')[2020-04-14T11\:22\:46.294Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] 

[2020-04-14T11\:22\:46.294Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseSwizzlingUtilities' from project 'Pods')

[2020-04-14T11\:22\:46.294Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Fabric' from project 'Pods')

[2020-04-14T11\:22\:46.295Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'FirebaseAnalytics' from project 'Pods')

[2020-04-14T11\:22\:46.401Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'GTMSessionFetcher' from project 'Pods')


warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'nanopb' from project 'Pods')

warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'Protobuf' from project 'Pods')

warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'CocoaLumberjack' from project 'Pods')

warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'YapDatabase' from project 'Pods')

warning\: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.1.99. (in target 'PureeOS' from project 'Pods')
[2020-04-14T11\:22\:46.457Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] ** ARCHIVE FAILED **

The following build commands failed\:
[2020-04-14T11\:22\:46.457Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5]     CompileC /Users/mabs02/Library/Developer/Xcode/DerivedData/TwSandboxApp1-hbsrbdecwkslgeenpvywileksrkq/Build/Intermediates.noindex/ArchiveIntermediates/TwSandboxApp1/IntermediateBuildFilesPath/TwSandboxApp1.build/Release-iphoneos/TwSandboxApp1.build/Objects-normal/arm64/FirebasePlugin.o /Users/mabs02/NativeBuilder/builds/342e955c-9a77-43f7-b9ff-68c8058d0709/source/platforms/ios/TwSandboxApp1/Plugins/cordova-plugin-firebase/FirebasePlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1 failure)
[2020-04-14T11\:22\:46.477Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] Command finished with error code 65\: xcodebuild -workspace,TwSandboxApp1.xcworkspace,-scheme,TwSandboxApp1,-configuration,Release,-destination,generic/platform=iOS,-archivePath,TwSandboxApp1.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/mabs02/NativeBuilder/builds/342e955c-9a77-43f7-b9ff-68c8058d0709/source/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/mabs02/NativeBuilder/builds/342e955c-9a77-43f7-b9ff-68c8058d0709/source/platforms/ios/build/sharedpch[2020-04-14T11\:22\:46.478Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5]
[2020-04-14T11\:22\:46.481Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] Error\: xcodebuild\: Command failed with exit code 65[2020-04-14T11\:22\:46.482Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5]
[2020-04-14T11\:22\:46.645Z] [VERBOSE] [9dc5432495877a89075885038e5a856bafe7f6c5] Setting default keychain...Deleting temporary keychain...Deleting provision profile.../Users/mabs02/Library/MobileDevice/Provisioning Profiles//bb39f275-8214-40da-a649-0f1529544510.mobileprovision

A part of this in android the plugin compiles without problems.


Cheers

It seems that you're right when you say it's a framework issue.


If I look into this file (https://github.com/CocoaPods/CDN-Specs/blob/master/Specs/f/2/a/FirebaseRemoteConfig/2.1.3/FirebaseRemoteConfig.podspec.json) which is the spec of version 2.1.3 being used in your plugin (line 154, plugin.xml), it seems that it is pointing to v7.0 (line 23 of the linked file).

The 3.0 (https://github.com/CocoaPods/CDN-Specs/blob/master/Specs/f/2/a/FirebaseRemoteConfig/3.0.0/FirebaseRemoteConfig.podspec.json) seems to target 8.0. It should do the trick.

You need to check the references to the other podspec entries, though.


Cheers!


EDIT: I would say for you to try to change just one to see if this would fix (let's say the remoteconfig one), but probably that will most likely bring more problems than solutions... It may be preferable to check all the references (at the beginning of the podspec.json file) before trying to compile :)

I thought to do it but I was blocked in the first framework because the specifications of the latest version of the fabric framework still have version 7.

thank you anyway.  

If it helps, it seems that the original plugin (https://github.com/arnesson/cordova-plugin-firebase) is using custom frameworks (https://github.com/arnesson/cordova-plugin-firebase/blob/master/plugin.xml, line 95). You can try to change your plugin source URL to a release of this plugin and see if it would work.


Cheers!


EDIT: Fabric seems to be deprecated (https://get.fabric.io/) and should be replaced.