COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 01-15-2019, 08:18 AM   #1
Nonlinear
Human being with feelings
 
Join Date: Apr 2018
Posts: 396
Default Building IPlug in Xcode 10?

Trying to build IPlugEffect in Xcode 10 and getting the i386 error "You should update your ARCHS build settings to remove the i386 architecture (in target "base_32&64_intel")

I've gone through the IPlug code and only see "i386" in a few places - but not sure if IPlug will build WITHOUT this.

What needs to be tweaked here?

Last edited by Nonlinear; 01-15-2019 at 09:35 PM.
Nonlinear is offline   Reply With Quote
Old 01-15-2019, 08:23 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Nonlinear View Post
What needs to be tweaked here?
The Xcode build settings. Apple is dropping 32 bit support soon on macOs. Since IPlug supports 64 bit since a long time, removing the 32 bit architecture from the Xcode settings should work but of course you can then no longer provide your plugin for users stuck on 32 bit macOs or hosts. (Which shouldn't really be a problem anymore now in 2019. All sensible users and hosts are already 64 bit compatible.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 01-15-2019, 09:20 AM   #3
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

i think you can hack it and place the 10.11 SDK in the Xcode bundle in order to compile 32 bit binaries with xcode 10
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote
Old 01-15-2019, 05:38 PM   #4
Nonlinear
Human being with feelings
 
Join Date: Apr 2018
Posts: 396
Default

Quote:
Originally Posted by olilarkin View Post
i think you can hack it and place the 10.11 SDK in the Xcode bundle in order to compile 32 bit binaries with xcode 10
I'm just trying to build 64-bit plugins (from iPlugEffect). It's not compiling because of some "i386 architecture" errors (see attached).

I don't know if the problem is in the Xcode build settings or actual code in the iPlugEffect files that needs to be edited. Whatever the case, the iPlugEffect example is not building for me in Xcode 10 as-is.

I'm sure folks here have come across this and know what to do - please advise. Thank you!
Attached Images
File Type: jpg i386 error.jpg (16.4 KB, 185 views)

Last edited by Nonlinear; 01-15-2019 at 06:31 PM.
Nonlinear is offline   Reply With Quote
Old 01-16-2019, 05:54 AM   #5
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

Hmmm. i think you have to get xcode 9.4... i can't get it to work even with 10.12sdk
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote
Old 01-16-2019, 09:34 AM   #6
Nonlinear
Human being with feelings
 
Join Date: Apr 2018
Posts: 396
Default

Quote:
Originally Posted by olilarkin View Post
Hmmm. i think you have to get xcode 9.4... i can't get it to work even with 10.12sdk
I think we have to go through all the xcodeproj files and remove i386 from the "ARCHS =" statements.

Problem is some of code sections are ONLY ARCHS = i386 so I don't know what to do there.

It looks like you have already made those changes in iPlug2:

//ARCHS = $(ARCHS_STANDARD_32_64_BIT)
ARCHS = $(ARCHS_STANDARD_64_BIT)

Yes, it seems Xcode 9 is the answer for iPlug1 - but eventually will have to migrate to Xcode 10. Maybe I will give iPlug 2 a try.

Last edited by Nonlinear; 01-16-2019 at 11:11 AM.
Nonlinear is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.