Skip to content
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

Build failed when running scripts #295

Closed
xmkevin opened this issue Jan 19, 2017 · 2 comments
Closed

Build failed when running scripts #295

xmkevin opened this issue Jan 19, 2017 · 2 comments

Comments

@xmkevin
Copy link

xmkevin commented Jan 19, 2017

/Users/admin/Downloads/Bolts-ObjC-1.8.4/Bolts/iOS/BFAppLinkReturnToRefererView.m:33:1: error:
cannot synthesize weak property in file using manual reference counting
@implementation BFAppLinkReturnToRefererView {
^
In file included from /Users/admin/Downloads/Bolts-ObjC-1.8.4/Bolts/iOS/BFAppLinkReturnToRefererView.m:11:
/Users/admin/Downloads/Bolts-ObjC-1.8.4/Bolts/iOS/BFAppLinkReturnToRefererView.h:56:70: note:
property declared here
@Property (nonatomic, weak) id delegate;
^
1 error generated.

The following build commands failed:
CompileC build/Bolts.build/Debug-iphonesimulator/Bolts-iOS.build/Objects-normal/i386/BFAppLinkReturnToRefererView.o Bolts/iOS/BFAppLinkReturnToRefererView.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

@opoukha
Copy link

opoukha commented Mar 23, 2017

Same thing for 1.8.3

@nlutsenko
Copy link
Member

You do need to run git submodule update --init --recursive after you cloned the repository.
We use submodules for a shared set of configurations of Xcode config files, which also includes the configuration on whether to enable ARC (which is the error that you see here).

TL;DR Run this to unbreak:

git clone https://github.com/BoltsFramework/Bolts-ObjC.git
cd Bolts-ObjC
git submodule update --init --recursive

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

No branches or pull requests

3 participants