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

Bug: Prebuilt XCFramework errors at import statements #712

Closed
mattrobmattrob opened this issue May 9, 2023 · 0 comments · Fixed by #715
Closed

Bug: Prebuilt XCFramework errors at import statements #712

mattrobmattrob opened this issue May 9, 2023 · 0 comments · Fixed by #715

Comments

@mattrobmattrob
Copy link
Collaborator

Branch: https://github.com/bazel-ios/rules_ios/compare/master...mattrobmattrob:mr/broken.xcframework.deps?expand=1

Repro:

$ bazel build --features apple.virtualize_frameworks //tests/ios/xcframeworks/Basic:XCFrameworksApp
INFO: Analyzed target //tests/ios/xcframeworks/Basic:XCFrameworksApp (24 packages loaded, 897 targets configured).
INFO: Found 1 target...
ERROR: /Users/matt.robinson/Developer/rules_ios/rules_ios/tests/ios/xcframeworks/Basic/BUILD.bazel:5:16: Compiling Swift module //tests/ios/xcframeworks/Basic:xcframeworks_swift failed: (Exit 1): worker failed: error executing command (from target //tests/ios/xcframeworks/Basic:xcframeworks_swift)
  (cd /private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios && \
  exec env - \
    APPLE_SDK_PLATFORM=iPhoneSimulator \
    APPLE_SDK_VERSION_OVERRIDE=16.4 \
    SWIFT_AVOID_WARNING_USING_OLD_DRIVER=1 \
    XCODE_VERSION_OVERRIDE=14.3.0.14E222b \
  bazel-out/darwin_arm64-opt-exec-2B5CBBC6-ST-103902c0b028/bin/external/build_bazel_rules_swift/tools/worker/worker swiftc @bazel-out/ios-sim_arm64-applebin_ios-ios_sim_arm64-dbg-ST-2a0e8ccdcbc3/bin/tests/ios/xcframeworks/Basic/xcframeworks.swiftmodule-0.params)
# Configuration: a9e3074c64353107d7b3531998216c3eec5702a13967b6f12e804b2a63420e30
# Execution platform: @local_config_platform//:host
error: emit-module command failed with exit code 1 (use -v to see invocation)
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:19:9: note: in file included from <module-includes>:19:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:19:9: note: in file included from <module-includes>:19:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:20:9: note: in file included from <module-includes>:20:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:20:9: note: in file included from <module-includes>:20:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:21:9: note: in file included from <module-includes>:21:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:21:9: note: in file included from <module-includes>:21:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:22:9: note: in file included from <module-includes>:22:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:22:9: note: in file included from <module-includes>:22:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:23:9: note: in file included from <module-includes>:23:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:23:9: note: in file included from <module-includes>:23:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:24:9: note: in file included from <module-includes>:24:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:24:9: note: in file included from <module-includes>:24:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/Instabug.h"
        ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: error: could not build module 'Instabug_import_middleman'
#import "IBGNetworkLogger.h"
        ^
<unknown>:0: error: could not build Objective-C module 'Instabug'
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:19:9: note: in file included from <module-includes>:19:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:19:9: note: in file included from <module-includes>:19:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64-apple-ios-simulator.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:20:9: note: in file included from <module-includes>:20:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:20:9: note: in file included from <module-includes>:20:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/arm64.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:21:9: note: in file included from <module-includes>:21:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:21:9: note: in file included from <module-includes>:21:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386-apple-ios-simulator.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:22:9: note: in file included from <module-includes>:22:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:22:9: note: in file included from <module-includes>:22:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/i386.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:23:9: note: in file included from <module-includes>:23:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:23:9: note: in file included from <module-includes>:23:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64-apple-ios-simulator.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:24:9: note: in file included from <module-includes>:24:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface"
        ^
bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface:4:1: error: unknown type name 'import'
import Foundation
^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: note: while building module 'Instabug_import_middleman' imported from external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:
#import "IBGNetworkLogger.h"
        ^
<module-includes>:24:9: note: in file included from <module-includes>:24:
#import "../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface"
        ^
/private/var/tmp/_bazel_matt.robinson/0e64031a9efbb95e4728094ee9457143/execroot/build_bazel_rules_ios/bazel-out/ios-sim_arm64-min10.0-applebin_ios-ios_sim_arm64-dbg-ST-4994c467dfba/bin/external/Instabug/../../../../../external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Modules/Instabug.swiftmodule/x86_64.swiftinterface:4:18: error: expected ';' after top level declarator
import Foundation
                 ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/Instabug.h"
        ^
external/Instabug/Instabug.xcframework/ios-arm64_i386_x86_64-simulator/Instabug.framework/Headers/Instabug.h:13:9: error: could not build module 'Instabug_import_middleman'
#import "IBGNetworkLogger.h"
        ^
<unknown>:0: error: could not build Objective-C module 'Instabug'
Target //tests/ios/xcframeworks/Basic:XCFrameworksApp failed to build
INFO: Elapsed time: 0.961s, Critical Path: 0.58s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
@mattrobmattrob mattrobmattrob changed the title Bug: XCFramework errors at import statements Bug: Prebuilt XCFramework errors at import statements May 9, 2023
mattrobmattrob added a commit that referenced this issue May 9, 2023
…ansitive_deps (#3) (#570)" (#715)

This reverts commit 6f11291 (#570). This fixes #712 and is confirmed in #713 (which can be merged after this is done since I don't have repo branch push access).
mattrobmattrob added a commit that referenced this issue May 9, 2023
Improve tests to catch issue reported in #712.
nataliejameson pushed a commit to discord/rules_ios that referenced this issue Aug 13, 2024
…ansitive_deps (#3) (#570)" (#715)

This reverts commit 6f11291 (bazel-ios/rules_ios#570). This fixes bazel-ios/rules_ios#712 and is confirmed in bazel-ios/rules_ios#713 (which can be merged after this is done since I don't have repo branch push access).
nataliejameson pushed a commit to discord/rules_ios that referenced this issue Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant