unable to resolve product type 'com.apple.product-type.application.watchapp2' for platform 'iphoneos' (in target 'watchVersion' from - flutter

i want to create flutter app for apple watch after Enabling bitcode in Xcode and Adding an Apple Watch target
but app is not running ,
get me this error
error: unable to resolve product type 'com.apple.product-type.watchkit2-extension' for platform 'iphoneos' (in target 'watchVersion Extension' from project 'Runner')

You need to change your project's Xcode Build Settings for your Apple Watch app target (extension also) Base SDK and Supported platform to watchOS. Make sure that the Runner app stays on iOS.

Faced a similar problem with Azure pipeline, the solution was to update sdk which was being passed as sdk:'iphoneos'.
Just passed empty string sdk: ''

Related

Codemagic builed failed on flutter app on windows with platform error?

I'm trying to build my flutter app with codemagic for ios but it fails building with this error:
[!] Automatically assigning platform iOS with version 9.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
Error running pod install
Build failed :| Failed to build for iOS
exactly like on this thread:
Error while building flutter app for ios on codemagic - Automatically assigning platform `iOS` with version `8.0` on target `Runner`
but couldn't understand the solution.
I'm using windows so have no pod file as well.
I also looked inside the suggested link but it links to the cocoapod website which I don't have on windows.
Any suggestions would help!

unable to resolve product type 'com.apple.pages.product-type.application' for platform 'iphoneos'

I want to create flutter app for
iphone and Android.
In Android project working fine.
but i check project in xcode get this error please help.
unable to resolve product type 'com.apple.pages.product-type.application' for platform 'iphoneos'

Flutter webview_flutter build is failing

I am trying to install webview_flutter plugin but somehow my build is failing every time
Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running Xcode build...
├─Assembling Flutter resources... 10.2s
└─Compiling, linking and signing... 2.1s
Xcode build done.
17.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
<path_to_project>ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal
error: module 'webview_flutter' not found
#import webview_flutter;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
pubspec.yml
dependencies:
flutter:
sdk: flutter
webview_flutter: ^0.3.19+8
I tried running but it did not solve it.
flutter clean
flutter pub cache repair
Have you follow all the installation for iOS for this plugin?
This is from the webview_flutter page itself:
To use this plugin on iOS you need to opt-in for the embedded views
preview by adding a boolean property to the app's Info.plist file,
with the key io.flutter.embedded_views_preview and the value YES.
This also seems to be related, take a look: https://github.com/flutter/flutter/issues/50190
In my case, the issue was that I had manually edited the podfile to add in my own (non-flutter) pod to the project. However, the flutter build would make no attempt to edit (or overwrite) the podfile, (maybe this is good) so the podfile would not have the changes necessary to support webview_flutter. I figured this all out by creating a brand new flutter project and comparing the new project's generated podfile against my current version. They looked significantly different.
flutter upgrade solved problem for me

bitrise could not find transporter at Applications/Xcode-beta.app/Contents/Developer

I am trying to upload ios archive to testflight using bitrise and fastlane but after archive success I get the error "Could not find transporter at Applications/Xcode-beta.app/Contents/Developer" and the workflow fails.
Here is my fastlane file
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
increment_build_number(xcodeproj: "APPNAME.xcodeproj")
match(type: "appstore")
cocoapods
build_app(workspace: "APPNAME.xcworkspace", scheme: "APPNAME")
upload_to_testflight
commit_version_bump(
message: "Fastlane iOS: Released new build #{lane_context[SharedValues::BUILD_NUMBER]} [ci skip].",
xcodeproj: "./APPNAME.xcodeproj",
force: true
)
clean_build_artifacts
end
end
Xcode 11 doesn't include the Transporter application anymore.
https://developer.apple.com/videos/play/wwdc2019/301/
I first got this error and so I downloaded Transporter off the apple help page. However, Transporter 2x is not compatible with xcode 11. You need to use the version that is bundled with xcode 10x.
This github thread contains a download link to the appropriate binary.
If you have already installed the incorrect version of Transporter in the default path that fastlane expects /usr/local/itms, then use the environment variable FASTLANE_ITUNES_TRANSPORTER_PATH to specify a path to iTMSTransporter.cmd.
Specifying this path solved my issue and I was able to release to the apple store with xcode 11.

“Base SDK Missing” after installing to Xcode 4

Hello
after installing xcode 4 preview 5 I've tried to build a project created with Xcode 3.2.3.
Unfortunately an error message is displayed:
Missing SDK: There is no SDK with the name or path '/User/Me/Desktop/Project/IPhone4.0'
any idea to fix it?
thanks a lot
Agreed with Kristopher Jhonson. That should work.
Ref: "Base SDK Missing" after upgrading to Xcode 3.2.5
Project->Edit Project Settings->Build->Base SDK->Latest SDK (4.2)
Project->Edit Project Settings->Build->iOS Target Deployment->iOS 4.2
Project->Edit Active Target (myTarget)->Base SDK->Latest SDK (4.2)
Project->Edit Active Target (myTarget)->iOS Target Deployment->iOS 4.2
And, If you still have problems:
Click the box that says base SDK missing, and select:
Simulator -> Debug
That should do it."
These are due to inappropriate Base SDK selection for Project.
Follow these steps to resolve it :
Select Project
Build Setting
Base SDK -> Latest iOS SDK