Skip to content

ffigen 13.0.0 build failed after include the generated .m file. #1360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yanshouwang opened this issue Jul 19, 2024 · 3 comments
Closed

ffigen 13.0.0 build failed after include the generated .m file. #1360

yanshouwang opened this issue Jul 19, 2024 · 3 comments

Comments

@yanshouwang
Copy link

Here is the error message:

Launching lib/main.dart on Mimir in debug mode...
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store.
Automatically signing iOS for device deployment using specified development team in Xcode project: T5YVNX2NAC
Xcode build done.                                            6.1s
Failed to build iOS app
Could not build the precompiled application for the device.
ARC Restrictions (Xcode): ARC forbids explicit message send of 'retain'
/Users/yanshouwang/dev/camerax/camerax_ios/ios/Classes/ffi.g.m:7:16
ffi.g.m:7

Semantic Issue (Xcode): 'retain' is unavailable: not available in automatic reference counting mode
/Users/yanshouwang/dev/camerax/camerax_ios/ios/Classes/ffi.g.m:7:16
ffi.g.m:7

Semantic Issue (Xcode): 'release' is unavailable: not available in automatic reference counting mode
/Users/yanshouwang/dev/camerax/camerax_ios/ios/Classes/ffi.g.m:9:9
ffi.g.m:9

ARC Restrictions (Xcode): ARC forbids explicit message send of 'release'
/Users/yanshouwang/dev/camerax/camerax_ios/ios/Classes/ffi.g.m:9:9
ffi.g.m:9
@yanshouwang
Copy link
Author

Do I need to disable the ARC for this .m file as the stackOverflow said?

@liamappelbe
Copy link
Contributor

Yep. We have to do something similar in package:objective_c. We put s.requires_arc = [] in the podspec file.

@yanshouwang
Copy link
Author

Solved.

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

No branches or pull requests

2 participants