Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit f976a1c

Browse files
committed
Fix ios build on Go 1.9.4 due to golang/go#23742
1 parent e440737 commit f976a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/IRMA.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@
12181218
);
12191219
runOnlyForDeploymentPostprocessing = 0;
12201220
shellPath = /bin/sh;
1221-
shellScript = "export GOPATH=`echo ~/go`\n$GOPATH/bin/gomobile bind -target ios github.com/privacybydesign/irma_mobile/irmagobridge";
1221+
shellScript = "go_version=$(go version)\nif [[ $go_version = *'go1.9.4'* ]]; then\n export CGO_CFLAGS_ALLOW='-fmodules|-fblocks'\nfi\n\nexport GOPATH=`echo ~/go`\n$GOPATH/bin/gomobile bind -target ios github.com/privacybydesign/irma_mobile/irmagobridge\n";
12221222
};
12231223
/* End PBXShellScriptBuildPhase section */
12241224

0 commit comments

Comments
 (0)