Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

cannot build on iOS #44

Closed
3ace opened this issue Sep 2, 2018 · 8 comments
Closed

cannot build on iOS #44

3ace opened this issue Sep 2, 2018 · 8 comments

Comments

@3ace
Copy link

3ace commented Sep 2, 2018

While building module 'barcode_scan' imported from /Users/ace/dev/flutter/gro/ios/Runner/GeneratedPluginRegistrant.m:6:
In file included from <module-includes>:1:
In file included from /Users/ace/Library/Developer/Xcode/DerivedData/Runner-emrtiqllpcjivvembdtxzijbcdvu/Build/Products/Debug-iphoneos/barcode_scan/barcode_scan.framework/Headers/barcode_scan-umbrella.h:15:
/Users/ace/Library/Developer/Xcode/DerivedData/Runner-emrtiqllpcjivvembdtxzijbcdvu/Build/Products/Debug-iphoneos/barcode_scan/barcode_scan.framework/Headers/BarcodeScanPlugin.h:12:1: error: retain'ed block property does not copy the block - use copy attribute instead [-Werror,-Wobjc-noncopy-retain-block-property]
@property(nonatomic, retain) FlutterResult result;
^
1 error generated.
/Users/ace/dev/project/appios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: could not build module 'barcode_scan'
#import <barcode_scan/BarcodeScanPlugin.h>
 ~~~~~~~^
2 errors generated.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.7.5, on Mac OS X 10.13.6 17G65, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.26.1)
[✓] Connected devices (1 available)
@Pushan-Gupta
Copy link

@3ace Steps to reproduce?

@eddywm
Copy link

eddywm commented Sep 22, 2018

Got the same issue here BarcodeScanPlugin.h can't be found

@tudor07
Copy link

tudor07 commented Dec 30, 2018

Same for me

@tudor07
Copy link

tudor07 commented Dec 30, 2018

If you open the workspace file in Xcode it seems to work.

@marplx
Copy link

marplx commented Feb 4, 2019

It sounds silly but I have been opening the app with Xcode wrong all the time.

Open the complete Workspace (not the workspace file) with Xcode like so:

cd ios
open -a Xcode .

@gotirahul96
Copy link

Did anyone found how to solve this ??

@tqcenglish
Copy link

on Xcode->Target->Build Setting setting
Build Active Architecture Only => YES, Vaild Architecture => [arm64, arm64e]

@devtronic
Copy link
Member

Please update to the latest version and try it again. Also try to remove all generated data (Pods, packages, lock files etc.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants